From: Thomas Gleixner Date: Tue, 8 Aug 2023 22:03:50 +0000 (-0700) Subject: x86/apic: Nuke another processor check X-Git-Tag: v6.6-rc1~141^2~42 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=55cc40d3df3c5c49f3a72e451bb710ec9e398ddc;p=linux-block.git x86/apic: Nuke another processor check The boot CPUs local APIC is now always registered, so there is no point to have another unreadable validatation for it. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index fc2173b7dc89..da795f743542 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -1181,23 +1181,6 @@ static void __init smp_sanity_check(void) set_nr_cpu_ids(8); } #endif - - if (!physid_isset(read_apic_id(), phys_cpu_present_map)) { - pr_warn("weird, boot CPU (#%d) not listed by the BIOS\n", - read_apic_id()); - - physid_set(read_apic_id(), phys_cpu_present_map); - } - - /* - * Should not be necessary because the MP table should list the boot - * CPU too, but we do it for the sake of robustness anyway. - */ - if (!apic->check_phys_apicid_present(boot_cpu_physical_apicid)) { - pr_notice("weird, boot CPU (#%d) not listed by the BIOS\n", - boot_cpu_physical_apicid); - physid_set(read_apic_id(), phys_cpu_present_map); - } preempt_enable(); }