x86/apic: Convert other overrides to apic_update_callback()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:04:20 +0000 (15:04 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 19:00:46 +0000 (12:00 -0700)
commitd6f361ea706710f8d582bb176793b779a3b8b2ca
tree990c53c89f4a8f954133009f9abc02098e039e03
parent2744a7ce34a776444225f20ae11ead6e980a129a
x86/apic: Convert other overrides to apic_update_callback()

Convert all places which just assign a new function directly to the apic
callback to use apic_update_callback() which prepares for using static
calls.

Mark snp_set_wakeup_secondary_cpu() and kvm_setup_pv_ipi() __init, as they
are only invoked from init code and otherwise trigger a section mismatch as
they are now invoking a __init function.

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/hyperv/hv_apic.c
arch/x86/kernel/kvm.c
arch/x86/kernel/sev.c