Skip to content

Commit

Permalink
irqchip/i8259: Prepare i8259_irq_dispatch for irq argument removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner committed Jul 31, 2015
1 parent 0509cfd commit 4ba3750
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/irqchip/irq-i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ba3750

Please sign in to comment.