x86: fix early panic with boot option "nosmp"

Impact: fix boot crash with numcpus=0 on certain systems

Fix early exception in __get_smp_config with nosmp.

Bail out early when there is no MP table.

Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Tested-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Andi Kleen and committed by
Ingo Molnar
9adc1386 66a05d6b

+3
+3
arch/x86/kernel/mpparse.c
··· 604 604 printk(KERN_INFO "Using ACPI for processor (LAPIC) " 605 605 "configuration information\n"); 606 606 607 + if (!mpf) 608 + return; 609 + 607 610 printk(KERN_INFO "Intel MultiProcessor Specification v1.%d\n", 608 611 mpf->mpf_specification); 609 612 #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86_32)