x86/xen: Remove redundant irq_enter/exit() invocations
authorThomas Gleixner <tglx@linutronix.de>
Tue, 12 Oct 2021 13:33:09 +0000 (15:33 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 2 Nov 2021 12:45:44 +0000 (07:45 -0500)
All these handlers are regular device interrupt handlers, so they already
went through the proper entry code which handles this correctly.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: x86@kernel.org
Cc: xen-devel@lists.xenproject.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/877deicqqy.ffs@tglx
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/xen/smp.c
arch/x86/xen/smp_pv.c

index c1b2f764b29a2f442f9d1d857c350d47396114d5..8f6d3dfaffa0425c4bf5083677fdf46d91917f6f 100644 (file)
@@ -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;
 }
index 7ed56c6075b0cc8d7e1fd97288fac2761983e2bc..9e55bcbfcd33c03ac4eea475fc250af2a797b091 100644 (file)
@@ -458,10 +458,8 @@ static void xen_pv_stop_other_cpus(int wait)
 
 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;
 }