irq: riscv: perform irqentry in entry code
authorMark Rutland <mark.rutland@arm.com>
Wed, 20 Oct 2021 10:33:49 +0000 (11:33 +0100)
committerMark Rutland <mark.rutland@arm.com>
Tue, 26 Oct 2021 09:13:29 +0000 (10:13 +0100)
commit7ecbc648102f2fa80d2aefb75b7f8b482f1a4483
tree40a3bed2aa7e86a3cc033cc559a0d158469622b9
parent418360b23113d62aa99586ada37806b4a7a53afa
irq: riscv: perform irqentry in entry code

In preparation for removing HANDLE_DOMAIN_IRQ_IRQENTRY, have arch/riscv
perform all the irqentry accounting in its entry code. As arch/riscv
uses GENERIC_IRQ_MULTI_HANDLER, we can use generic_handle_arch_irq() to
do so.

Since generic_handle_arch_irq() handles the irq entry and setting the
irq regs, and happens before the irqchip code calls handle_IPI(), we can
remove the redundant irq entry and irq regs manipulation from
handle_IPI().

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: Albert Ou <aou@eecs.berkeley.edu>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
arch/riscv/Kconfig
arch/riscv/kernel/entry.S
arch/riscv/kernel/smp.c