Skip to content

Commit a71b092

Browse files
Marc ZyngierJason Cooper
authored andcommitted
ARM: Convert handle_IRQ to use __handle_domain_irq
In order to limit code duplication, convert the architecture specific handle_IRQ to use the generic __handle_domain_irq function. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Link: https://lkml.kernel.org/r/1409047421-27649-4-git-send-email-marc.zyngier@arm.com Signed-off-by: Jason Cooper <jason@lakedaemon.net>
1 parent a1ddc74 commit a71b092

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ config ARM
2424
select GENERIC_SMP_IDLE_THREAD
2525
select GENERIC_STRNCPY_FROM_USER
2626
select GENERIC_STRNLEN_USER
27+
select HANDLE_DOMAIN_IRQ
2728
select HARDIRQS_SW_RESEND
2829
select HAVE_ARCH_AUDITSYSCALL if (AEABI && !OABI_COMPAT)
2930
select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL

‎arch/arm/kernel/irq.c‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,7 @@ int arch_show_interrupts(struct seq_file *p, int prec)
6565
*/
6666
void handle_IRQ(unsigned int irq, struct pt_regs *regs)
6767
{
68-
struct pt_regs *old_regs = set_irq_regs(regs);
69-
70-
irq_enter();
71-
72-
/*
73-
* Some hardware gives randomly wrong interrupts. Rather
74-
* than crashing, do something sensible.
75-
*/
76-
if (unlikely(irq >= nr_irqs)) {
77-
if (printk_ratelimit())
78-
printk(KERN_WARNING "Bad IRQ%u\n", irq);
79-
ack_bad_irq(irq);
80-
} else {
81-
generic_handle_irq(irq);
82-
}
83-
84-
irq_exit();
85-
set_irq_regs(old_regs);
68+
__handle_domain_irq(NULL, irq, false, regs);
8669
}
8770

8871
/*

0 commit comments

Comments
 (0)