[PATCH v2 1/1] powerpc/pseries: increase pseries_dlpar_init initcall priority
Jose Ricardo Ziviani
joserz at linux.vnet.ibm.com
Tue Dec 26 23:53:59 AEDT 2017
The hotplug engine uses its own workqueue to handle IRQ requests, the
problem is that such workqueue is initialized after init_ras_IRQ, which
will cause a kernel panic if any hotplug interruption is issued in that
period of time.
This patch changes the dlpar initcall registration to make sure it will
be initialized before init_ras_IRQ.
Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
---
arch/powerpc/platforms/pseries/dlpar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c
index 6e35780c5962..1f9ae1d0b2be 100644
--- a/arch/powerpc/platforms/pseries/dlpar.c
+++ b/arch/powerpc/platforms/pseries/dlpar.c
@@ -580,5 +580,5 @@ static int __init pseries_dlpar_init(void)
WQ_UNBOUND, 1);
return sysfs_create_file(kernel_kobj, &class_attr_dlpar.attr);
}
-machine_device_initcall(pseries, pseries_dlpar_init);
+machine_arch_initcall(pseries, pseries_dlpar_init);
--
2.14.1
More information about the Linuxppc-dev
mailing list