diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-05-15 15:48:25 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-05-15 16:03:18 +0200 |
commit | 6af7faf6076697a39438cf38e21b4035e2ebdac9 (patch) | |
tree | 81e41507d5d80e11c749287ea0c4c2fcdcb063c2 /arch/x86/kernel/irq.c | |
parent | 486ca539caa082c7f2929c207af1b3ce2a304489 (diff) | |
download | op-kernel-dev-6af7faf6076697a39438cf38e21b4035e2ebdac9.zip op-kernel-dev-6af7faf6076697a39438cf38e21b4035e2ebdac9.tar.gz |
x86: Use entering[_ack]_irq() instead of open coding it
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/irq.c')
-rw-r--r-- | arch/x86/kernel/irq.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index fe2ed8b..be38945 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -198,8 +198,7 @@ __visible unsigned int __irq_entry do_IRQ(struct pt_regs *regs) unsigned vector = ~regs->orig_ax; unsigned irq; - irq_enter(); - exit_idle(); + entering_irq(); irq = __this_cpu_read(vector_irq[vector]); @@ -215,7 +214,7 @@ __visible unsigned int __irq_entry do_IRQ(struct pt_regs *regs) } } - irq_exit(); + exiting_irq(); set_irq_regs(old_regs); return 1; @@ -250,16 +249,9 @@ __visible void smp_kvm_posted_intr_ipi(struct pt_regs *regs) { struct pt_regs *old_regs = set_irq_regs(regs); - ack_APIC_irq(); - - irq_enter(); - - exit_idle(); - + entering_ack_irq(); inc_irq_stat(kvm_posted_intr_ipis); - - irq_exit(); - + exiting_irq(); set_irq_regs(old_regs); } #endif |