x86/ioapic: Make io_apic_get_unique_id() simpler
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:04:57 +0000 (22:04 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:39 +0000 (22:07 +0100)
commit533535afc079b745ae8a5fd06afd2ba51b3495fe
tree0d4d1bd3bd5e73b1eda082cf7bbf69a468692d0a
parent517234446c1ad1d6bb0d9f5b94a71b24f80edaae
x86/ioapic: Make io_apic_get_unique_id() simpler

No need to go through APIC callbacks. It's already established that this is
an ancient APIC. So just copy the present mask and use the direct physid*
functions all over the place.

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/20240212154639.119261725@linutronix.de
arch/x86/kernel/apic/io_apic.c