x86/cpu/topology: Sanitize the APIC admission logic
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:52 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:43 +0000 (22:07 +0100)
commit0e53e7b656cf5aa67c08eca381cec858478195a7
tree6a24d097e3d2ea46d51df24541e07e7f36ddaa3a
parent6055f6cf0d462fa0d9212a8279b6b0d1130552e1
x86/cpu/topology: Sanitize the APIC admission logic

Move the actually required content of generic_processor_id() into the call
sites and use common helper functions for them. This separates the early
boot registration and the ACPI hotplug mechanism completely which allows
further cleanups and improvements.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240213210252.230433953@linutronix.de
arch/x86/kernel/cpu/topology.c