提交 ebc6de00 编写于 作者: M Marc Zyngier 提交者: Jason Cooper

irqchip: gic-v3: Convert to handle_domain_irq

Use the new handle_domain_irq method to handle interrupts.
Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/1409047421-27649-19-git-send-email-marc.zyngier@arm.comSigned-off-by: NJason Cooper <jason@lakedaemon.net>
上级 d8c0ffa5
...@@ -274,15 +274,14 @@ static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs ...@@ -274,15 +274,14 @@ static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs
irqnr = gic_read_iar(); irqnr = gic_read_iar();
if (likely(irqnr > 15 && irqnr < 1020)) { if (likely(irqnr > 15 && irqnr < 1020)) {
u64 irq = irq_find_mapping(gic_data.domain, irqnr); int err;
if (likely(irq)) { err = handle_domain_irq(gic_data.domain, irqnr, regs);
handle_IRQ(irq, regs); if (err) {
continue;
}
WARN_ONCE(true, "Unexpected SPI received!\n"); WARN_ONCE(true, "Unexpected SPI received!\n");
gic_write_eoir(irqnr); gic_write_eoir(irqnr);
} }
continue;
}
if (irqnr < 16) { if (irqnr < 16) {
gic_write_eoir(irqnr); gic_write_eoir(irqnr);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册