irq: nds32: avoid CONFIG_HANDLE_DOMAIN_IRQ
authorMark Rutland <mark.rutland@arm.com>
Wed, 20 Oct 2021 10:36:08 +0000 (11:36 +0100)
committerMark Rutland <mark.rutland@arm.com>
Mon, 25 Oct 2021 09:05:29 +0000 (10:05 +0100)
commit6f877e13c24d8b7b96a2f4e78f13a2bdfd401c8b
tree83ea46696a344019020caa2419a10a25d7c42e2e
parente54957fa3b3b374c63c66f60a8236dd95cf5e2be
irq: nds32: avoid CONFIG_HANDLE_DOMAIN_IRQ

In preparation for removing HANDLE_DOMAIN_IRQ, have arch/nds32 perform
all the necessary IRQ entry accounting in its entry code.

Currently arch/nds32 is tightly coupled with the ativic32 irqchip, and
while the entry code should logically live under arch/nds32/, moving the
entry logic there makes things more convoluted. So for now, place the
entry logic in the ativic32 irqchip, but separated into a separate
function to make the split of responsibility clear.

In future this should probably use GENERIC_IRQ_MULTI_HANDLER to cleanly
decouple this.

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

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Nick Hu <nickhu@andestech.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincent Chen <deanbo422@gmail.com>
arch/nds32/Kconfig
drivers/irqchip/irq-ativic32.c