From: Alexey Starikovskiy Date: Thu, 27 Mar 2008 20:54:06 +0000 (+0300) Subject: x86: don't call MP_processor_info for disabled cpu X-Git-Tag: v2.6.26-rc1~1154^2~101 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=987dd2d4d465e80e00d6a0b16787a78aa75dd66a;p=linux-2.6 x86: don't call MP_processor_info for disabled cpu Signed-off-by: Alexey Starikovskiy Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index 4cc325edc7..c487bc99d7 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c @@ -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;