aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/smpboot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/smpboot.c b/kernel/smpboot.c
index e1a797e028a3..0f2162f808a7 100644
--- a/kernel/smpboot.c
+++ b/kernel/smpboot.c
@@ -52,10 +52,12 @@ static inline void idle_init(unsigned int cpu)
52 */ 52 */
53void __init idle_threads_init(void) 53void __init idle_threads_init(void)
54{ 54{
55 unsigned int cpu; 55 unsigned int cpu, boot_cpu;
56
57 boot_cpu = smp_processor_id();
56 58
57 for_each_possible_cpu(cpu) { 59 for_each_possible_cpu(cpu) {
58 if (cpu != smp_processor_id()) 60 if (cpu != boot_cpu)
59 idle_init(cpu); 61 idle_init(cpu);
60 } 62 }
61} 63}