summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse_64.c
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-03-27 23:55:28 +0300
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:32 +0200
commit8ccab29ca8c441ae00d878d2f0000275f430f8a5 (patch)
tree19b13344539e13809c4ae353f63c74509eed4b0e /arch/x86/kernel/mpparse_64.c
parent86c9835b46605fb29a3c30c6cc344d9df49e54a3 (diff)
downloadop-kernel-dev-8ccab29ca8c441ae00d878d2f0000275f430f8a5.zip
op-kernel-dev-8ccab29ca8c441ae00d878d2f0000275f430f8a5.tar.gz
x86: don't call MP_processor_info for disabled cpu (64bit)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse_64.c')
-rw-r--r--arch/x86/kernel/mpparse_64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c
index 83a36ee..3681b9d 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;
OpenPOWER on IntegriCloud