From: Alexey Starikovskiy Date: Thu, 27 Mar 2008 20:55:28 +0000 (+0300) Subject: x86: don't call MP_processor_info for disabled cpu (64bit) X-Git-Tag: v2.6.26-rc1~1154^2~86 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8ccab29ca8c441ae00d878d2f0000275f430f8a5;p=linux-2.6-omap-h63xx.git x86: don't call MP_processor_info for disabled cpu (64bit) Signed-off-by: Alexey Starikovskiy Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c index 83a36eed081..3681b9d8f55 100644 --- a/arch/x86/kernel/mpparse_64.c +++ b/arch/x86/kernel/mpparse_64.c @@ -678,6 +678,10 @@ void __cpuinit mp_register_lapic(u8 id, u8 enabled) struct mpc_config_processor processor; int boot_cpu = 0; + if (!enabled) { + ++disabled_cpus; + return; + } if (id == boot_cpu_physical_apicid) boot_cpu = 1;