diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-07-31 22:59:10 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-31 23:20:04 +0300 |
commit | 4ba375016f0234f8d8e7572494eac09d0b1a7252 (patch) | |
tree | 6d07801e4a3fec239acbd6079e5f21d7600ea7fc /drivers/irqchip | |
parent | 0509cfde038d8afb0c1df1d52c90ae847b425d97 (diff) | |
download | linux-4ba375016f0234f8d8e7572494eac09d0b1a7252.tar.xz |
irqchip/i8259: Prepare i8259_irq_dispatch for irq argument removal
Make irq a local variable and retrieve domain from the irq descriptor
which avoid a redundant lookup.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-i8259.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c index a29638a1e6e5..4836102ba312 100644 --- a/drivers/irqchip/irq-i8259.c +++ b/drivers/irqchip/irq-i8259.c @@ -352,10 +352,11 @@ void __init init_i8259_irqs(void) __init_i8259_irqs(NULL); } -static void i8259_irq_dispatch(unsigned int irq, struct irq_desc *desc) +static void i8259_irq_dispatch(unsigned int __irq, struct irq_desc *desc) { - struct irq_domain *domain = irq_get_handler_data(irq); + struct irq_domain *domain = irq_desc_get_handler_data(desc); int hwirq = i8259_irq(); + unsigned int irq; if (hwirq < 0) return; |