diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-03-27 16:55:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:32 -0400 |
commit | 8ccab29ca8c441ae00d878d2f0000275f430f8a5 (patch) | |
tree | 19b13344539e13809c4ae353f63c74509eed4b0e | |
parent | 86c9835b46605fb29a3c30c6cc344d9df49e54a3 (diff) |
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>
-rw-r--r-- | arch/x86/kernel/mpparse_64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c index 83a36eed081b..3681b9d8f557 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) | |||
678 | struct mpc_config_processor processor; | 678 | struct mpc_config_processor processor; |
679 | int boot_cpu = 0; | 679 | int boot_cpu = 0; |
680 | 680 | ||
681 | if (!enabled) { | ||
682 | ++disabled_cpus; | ||
683 | return; | ||
684 | } | ||
681 | if (id == boot_cpu_physical_apicid) | 685 | if (id == boot_cpu_physical_apicid) |
682 | boot_cpu = 1; | 686 | boot_cpu = 1; |
683 | 687 | ||