提交 0df1ba8c 编写于 作者: G Glauber de Oliveira Costa 提交者: Ingo Molnar

x86: add extra sanity check

This test exists in x86_64 and also applies to i386. So we add it
Signed-off-by: NGlauber Costa <gcosta@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 1db17f55
...@@ -118,6 +118,12 @@ static void __init disable_smp(void) ...@@ -118,6 +118,12 @@ static void __init disable_smp(void)
static int __init smp_sanity_check(unsigned max_cpus) static int __init smp_sanity_check(unsigned max_cpus)
{ {
if (!physid_isset(hard_smp_processor_id(), phys_cpu_present_map)) {
printk(KERN_WARNING "weird, boot CPU (#%d) not listed"
"by the BIOS.\n", hard_smp_processor_id());
physid_set(hard_smp_processor_id(), phys_cpu_present_map);
}
/* /*
* If we couldn't find an SMP configuration at boot time, * If we couldn't find an SMP configuration at boot time,
* get out of here now! * get out of here now!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册