commit | 25aae561373280ab0c18d81d0ef9301aee4f5988 | [log] [tgz] |
---|---|---|
author | Jiang Liu <[email protected]> | Wed May 20 17:59:51 2015 +0800 |
committer | Ralf Baechle <[email protected]> | Sun Jun 21 21:53:47 2015 +0200 |
tree | 87431cf628faf639b1948f8fc7fe5c6771ac8139 | |
parent | 2e93f684088e00a9b4bb5cd1d1a622e2717de139 [diff] [blame] |
MIPS, IRQ: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we already have a pointer to corresponding irq_desc. Signed-off-by: Jiang Liu <[email protected]> Acked-by: Sergey Ryazanov <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Aleksey Makarov <[email protected]> Cc: David Daney <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: John Crispin <[email protected]> Cc: Andrew Bresticker <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: Tony Luck <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/10086/ Signed-off-by: Ralf Baechle <[email protected]>
diff --git a/arch/mips/ralink/irq.c b/arch/mips/ralink/irq.c index 7cf91b9..da301e0 100644 --- a/arch/mips/ralink/irq.c +++ b/arch/mips/ralink/irq.c
@@ -100,7 +100,7 @@ u32 pending = rt_intc_r32(INTC_REG_STATUS0); if (pending) { - struct irq_domain *domain = irq_get_handler_data(irq); + struct irq_domain *domain = irq_desc_get_handler_data(desc); generic_handle_irq(irq_find_mapping(domain, __ffs(pending))); } else { spurious_interrupt();