summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/local.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2023-08-08 15:04:04 -0700
committerDave Hansen <dave.hansen@linux.intel.com>2023-08-09 11:58:28 -0700
commitcfebd0077f3fc083cc139d7851e2068d058a89dd (patch)
tree62c2fd43d42edd65dc7d3f5f1f42b90e0d14b66b /arch/x86/kernel/apic/local.h
parent01363d4f762c3fb7285cc5bb0fdd23356dbacbef (diff)
downloadlinux-stable-cfebd0077f3fc083cc139d7851e2068d058a89dd.tar.gz
linux-stable-cfebd0077f3fc083cc139d7851e2068d058a89dd.tar.bz2
linux-stable-cfebd0077f3fc083cc139d7851e2068d058a89dd.zip
x86/apic: Consolidate wait_icr_idle() implementations
Two copies and also needlessly public. Move it into ipi.c so it can be inlined. Rename it to apic_mem_wait_icr_idle(). 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)
Diffstat (limited to 'arch/x86/kernel/apic/local.h')
-rw-r--r--arch/x86/kernel/apic/local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic/local.h b/arch/x86/kernel/apic/local.h
index 5b0a0e78ba6c..2eb49d434564 100644
--- a/arch/x86/kernel/apic/local.h
+++ b/arch/x86/kernel/apic/local.h
@@ -44,6 +44,8 @@ static inline unsigned int __prepare_ICR(unsigned int shortcut, int vector,
void default_init_apic_ldr(void);
+void apic_mem_wait_icr_idle(void);
+
/*
* This is used to send an IPI with no shorthand notation (the destination is
* specified in bits 56 to 63 of the ICR).