x86/apic: Wrap APIC ID validation into an inline
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:04:09 +0000 (15:04 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 18:58:30 +0000 (11:58 -0700)
commit9132d720eb8a40be5eaa539ed940beaf2bd2e421
tree4b6410d5013b3a1330d08b566fcc0cd3eb7bfea1
parentd65eb3195862d600b120b3f6481e016c312158cb
x86/apic: Wrap APIC ID validation into an inline

Prepare for removing the callback and making this as simple comparison to
an upper limit, which is the obvious solution to do for limit checks...

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)
arch/x86/include/asm/apic.h
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/apic/vector.c
arch/x86/kernel/smpboot.c
arch/x86/mm/srat.c