|
@@ -601,6 +601,11 @@ cpu_hotplug_pm_callback(struct notifier_block *nb,
|
|
|
|
|
|
|
|
static int __init cpu_hotplug_pm_sync_init(void)
|
|
static int __init cpu_hotplug_pm_sync_init(void)
|
|
|
{
|
|
{
|
|
|
|
|
+ /*
|
|
|
|
|
+ * cpu_hotplug_pm_callback has higher priority than x86
|
|
|
|
|
+ * bsp_pm_callback which depends on cpu_hotplug_pm_callback
|
|
|
|
|
+ * to disable cpu hotplug to avoid cpu hotplug race.
|
|
|
|
|
+ */
|
|
|
pm_notifier(cpu_hotplug_pm_callback, 0);
|
|
pm_notifier(cpu_hotplug_pm_callback, 0);
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|