x86/apic: Turn on static calls
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:04:24 +0000 (15:04 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 19:00:55 +0000 (12:00 -0700)
commitf8542a55499a69a859c84866b66f0df43933e563
tree58ddbf3804692d3ca7687fccbad05a4c9bf39745
parent3b7c27e6789911359867a9e8d3d7889fc94a3d55
x86/apic: Turn on static calls

Convert all the APIC callback inline wrappers from apic->foo() to
static_call(apic_call_foo)(), except for the safe_wait_icr_idle() one which
is only used during SMP bringup when sending INIT/SIPI. That really can do
the conditional callback. The regular wait_icr_idle() matters as it is used
in irq_work_raise(), so X2APIC machines spare the conditional.

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: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
arch/x86/include/asm/apic.h