summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/apic.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-05-15 15:50:45 +0200
committerThomas Gleixner <tglx@linutronix.de>2015-05-15 16:04:49 +0200
commit6dc178760553605c58d78bd403dfcb4e042c5b72 (patch)
treec0629434c3ed4cba49119389cd2716d40958be3a /arch/x86/include/asm/apic.h
parent6af7faf6076697a39438cf38e21b4035e2ebdac9 (diff)
downloadop-kernel-dev-6dc178760553605c58d78bd403dfcb4e042c5b72.zip
op-kernel-dev-6dc178760553605c58d78bd403dfcb4e042c5b72.tar.gz
x86: Consolidate irq entering inlines
smp.c and irq_work.c implement the same inline helper. Move it to apic.h and use it everywhere. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r--arch/x86/include/asm/apic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index 976b86a..c839363 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -644,6 +644,12 @@ static inline void entering_ack_irq(void)
entering_irq();
}
+static inline void ipi_entering_ack_irq(void)
+{
+ ack_APIC_irq();
+ irq_enter();
+}
+
static inline void exiting_irq(void)
{
irq_exit();
OpenPOWER on IntegriCloud