diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-03-19 13:26:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:04 -0400 |
commit | 0df1ba8cabc6c2d613921c75e525826e6eb3210b (patch) | |
tree | fdb8df4658b53a848f12965b635dd697e933d925 /arch/x86/kernel/smpboot_32.c | |
parent | 1db17f553425ae679bc771d4796b7349f00cb1d9 (diff) |
x86: add extra sanity check
This test exists in x86_64 and also applies to i386. So we add it
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot_32.c')
-rw-r--r-- | arch/x86/kernel/smpboot_32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index 6be36d3eea4e..ae23b603978c 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c | |||
@@ -118,6 +118,12 @@ static void __init disable_smp(void) | |||
118 | 118 | ||
119 | static int __init smp_sanity_check(unsigned max_cpus) | 119 | static int __init smp_sanity_check(unsigned max_cpus) |
120 | { | 120 | { |
121 | if (!physid_isset(hard_smp_processor_id(), phys_cpu_present_map)) { | ||
122 | printk(KERN_WARNING "weird, boot CPU (#%d) not listed" | ||
123 | "by the BIOS.\n", hard_smp_processor_id()); | ||
124 | physid_set(hard_smp_processor_id(), phys_cpu_present_map); | ||
125 | } | ||
126 | |||
121 | /* | 127 | /* |
122 | * If we couldn't find an SMP configuration at boot time, | 128 | * If we couldn't find an SMP configuration at boot time, |
123 | * get out of here now! | 129 | * get out of here now! |