irq: csky: perform irqentry in entry code
authorMark Rutland <mark.rutland@arm.com>
Wed, 20 Oct 2021 10:00:46 +0000 (11:00 +0100)
committerMark Rutland <mark.rutland@arm.com>
Tue, 26 Oct 2021 09:13:27 +0000 (10:13 +0100)
In preparation for removing HANDLE_DOMAIN_IRQ_IRQENTRY, have arch/csky
perform all the irqentry accounting in its entry code. As arch/csky uses
GENERIC_IRQ_MULTI_HANDLER, we can use generic_handle_arch_irq() to do
so.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
arch/csky/Kconfig
arch/csky/kernel/entry.S
arch/csky/kernel/irq.c

index 45f03f6..9d4d898 100644 (file)
@@ -18,7 +18,6 @@ config CSKY
        select DMA_DIRECT_REMAP
        select IRQ_DOMAIN
        select HANDLE_DOMAIN_IRQ
-       select HANDLE_DOMAIN_IRQ_IRQENTRY
        select DW_APB_TIMER_OF
        select GENERIC_IOREMAP
        select GENERIC_LIB_ASHLDI3
index 00e3c8e..a4ababf 100644 (file)
@@ -249,7 +249,7 @@ ENTRY(csky_irq)
 
 
        mov     a0, sp
-       jbsr    csky_do_IRQ
+       jbsr    generic_handle_arch_irq
 
        jmpi    ret_from_exception
 
index 03a1930..fcdaf31 100644 (file)
@@ -15,8 +15,3 @@ void __init init_IRQ(void)
        setup_smp_ipi();
 #endif
 }
-
-asmlinkage void __irq_entry csky_do_IRQ(struct pt_regs *regs)
-{
-       handle_arch_irq(regs);
-}