Skip to contentSkip to conversation

x86/xen: Remove redundant irq_enter/exit() invocations

PATCH Applied Thomas Gleixner 3 participants 3 messages Oct 12, 2021 – Oct 27, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/xen: Remove redundant irq_enter/exit() invocations

All these handlers are regular device interrupt handlers, so they already went through the proper entry code which handles this correctly.

Cc Juergen Gross <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Boris Ostrovsky <[email protected]>
---
 arch/x86/xen/smp.c    |    4 ----
 arch/x86/xen/smp_pv.c |    2 --
 2 files changed, 6 deletions(-)
arch/x86/xen/smp.c +0 -4
@@ -268,20 +268,16 @@ void xen_send_IPI_allbutself(int vector)
 
 static irqreturn_t xen_call_function_interrupt(int irq, void *dev_id)
 {
-	irq_enter();
 	generic_smp_call_function_interrupt();
 	inc_irq_stat(irq_call_count);
-	irq_exit();
 
 	return IRQ_HANDLED;
 }
 
 static irqreturn_t xen_call_function_single_interrupt(int irq, void *dev_id)
 {
-	irq_enter();
 	generic_smp_call_function_single_interrupt();
 	inc_irq_stat(irq_call_count);
-	irq_exit();
 
 	return IRQ_HANDLED;
 }
arch/x86/xen/smp_pv.c +0 -2
@@ -458,10 +458,8 @@ static void xen_pv_stop_other_cpus(int w
 
 static irqreturn_t xen_irq_work_interrupt(int irq, void *dev_id)
 {
-	irq_enter();
 	irq_work_run();
 	inc_irq_stat(apic_irq_work_irqs);
-	irq_exit();
 
 	return IRQ_HANDLED;
 }
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Thomas Gleixner

All these handlers are regular device interrupt handlers, so they already went through the proper entry code which handles this correctly.

Cc Juergen Gross <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Boris Ostrovsky <[email protected]>

Juergen

reviewer Applied
#2 lore raw
Quoted 4 lines · Juergen Gross
Quoted 3 lines · Thomas Gleixner

All these handlers are regular device interrupt handlers, so they already went through the proper entry code which handles this correctly.

Quoted 9 lines
Quoted 6 lines
Cc Juergen Gross <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Boris Ostrovsky <[email protected]>

Applied to for-linus-5.16

-boris