|
@@ -1125,6 +1125,8 @@ core_initcall(cpu_hotplug_pm_sync_init);
|
|
|
|
|
|
#endif /* CONFIG_PM_SLEEP_SMP */
|
|
#endif /* CONFIG_PM_SLEEP_SMP */
|
|
|
|
|
|
|
|
+int __boot_cpu_id;
|
|
|
|
+
|
|
#endif /* CONFIG_SMP */
|
|
#endif /* CONFIG_SMP */
|
|
|
|
|
|
/* Boot processor state steps */
|
|
/* Boot processor state steps */
|
|
@@ -1815,6 +1817,10 @@ void __init boot_cpu_init(void)
|
|
set_cpu_active(cpu, true);
|
|
set_cpu_active(cpu, true);
|
|
set_cpu_present(cpu, true);
|
|
set_cpu_present(cpu, true);
|
|
set_cpu_possible(cpu, true);
|
|
set_cpu_possible(cpu, true);
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_SMP
|
|
|
|
+ __boot_cpu_id = cpu;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|