x86: don't call MP_processor_info for disabled cpu
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Thu, 27 Mar 2008 20:54:06 +0000 (23:54 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:31 +0000 (17:41 +0200)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/mpparse_32.c

index 4cc325edc70de357e26a66c41fed15824a2fe1a8..c487bc99d7a368d3b4cf35f1c960f9aa1ca26cb8 100644 (file)
@@ -895,6 +895,10 @@ void __cpuinit mp_register_lapic (u8 id, u8 enabled)
                        id, MAX_APICS);
                return;
        }
+       if (!enabled) {
+               ++disabled_cpus;
+               return;
+       }
 
        if (id == boot_cpu_physical_apicid)
                boot_cpu = 1;