aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorGravatar Thomas Gleixner <tglx@linutronix.de> 2023-08-08 15:03:50 -0700
committerGravatar Dave Hansen <dave.hansen@linux.intel.com> 2023-08-09 11:58:22 -0700
commit55cc40d3df3c5c49f3a72e451bb710ec9e398ddc (patch)
treef34378b9ac995c1d68d6a3cf106d82417e7e169c /arch/x86/kernel/smpboot.c
parentx86/apic: Sanitize num_processors handling (diff)
downloadlinux-55cc40d3df3c5c49f3a72e451bb710ec9e398ddc.tar.gz
linux-55cc40d3df3c5c49f3a72e451bb710ec9e398ddc.tar.bz2
linux-55cc40d3df3c5c49f3a72e451bb710ec9e398ddc.zip
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 <tglx@linutronix.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Michael Kelley <mikelley@microsoft.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r--arch/x86/kernel/smpboot.c17
1 files changed, 0 insertions, 17 deletions
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();
}