x86/cpu/topology: Simplify APIC registration
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:47 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:43 +0000 (22:07 +0100)
commit4c4c6f38704ab0e3f85f660b7479de7aa559d79a
tree1d3390f08ec8dfe8dec3f1ada80a2873fce70aa7
parent58aa34abe9954cd5dfbf322fc612146c5f45e52b
x86/cpu/topology: Simplify APIC registration

Having the same check whether the number of assigned CPUs has reached the
nr_cpu_ids limit twice in the same code path is pointless. Repeating the
information that CPUs are ignored over and over is also pointless noise.

Remove the redundant check and reduce the noise by using a pr_warn_once().

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.050264369@linutronix.de
arch/x86/kernel/cpu/topology.c