Commit e54957fa authored by Mark Rutland's avatar Mark Rutland

irq: arc: avoid CONFIG_HANDLE_DOMAIN_IRQ

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

There should be no functional change as a result of this patch.
Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
Reviewed-by: default avatarMarc Zyngier <maz@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vineet Gupta <vgupta@kernel.org>
parent a1b09501
...@@ -40,7 +40,6 @@ config ARC ...@@ -40,7 +40,6 @@ config ARC
select HAVE_KRETPROBES select HAVE_KRETPROBES
select HAVE_MOD_ARCH_SPECIFIC select HAVE_MOD_ARCH_SPECIFIC
select HAVE_PERF_EVENTS select HAVE_PERF_EVENTS
select HANDLE_DOMAIN_IRQ
select IRQ_DOMAIN select IRQ_DOMAIN
select MODULES_USE_ELF_RELA select MODULES_USE_ELF_RELA
select OF select OF
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <asm/mach_desc.h> #include <asm/mach_desc.h>
#include <asm/irq_regs.h>
#include <asm/smp.h> #include <asm/smp.h>
/* /*
...@@ -39,5 +41,11 @@ void __init init_IRQ(void) ...@@ -39,5 +41,11 @@ void __init init_IRQ(void)
*/ */
void arch_do_IRQ(unsigned int hwirq, struct pt_regs *regs) void arch_do_IRQ(unsigned int hwirq, struct pt_regs *regs)
{ {
handle_domain_irq(NULL, hwirq, regs); struct pt_regs *old_regs;
irq_enter();
old_regs = set_irq_regs(regs);
generic_handle_domain_irq(NULL, hwirq);
set_irq_regs(old_regs);
irq_exit();
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment