x86: ioapic: Avoid redundant lookup of irq_cfg
authorThomas Gleixner <tglx@linutronix.de>
Sat, 12 Mar 2011 12:47:18 +0000 (13:47 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 12 Mar 2011 13:12:01 +0000 (14:12 +0100)
commit5561ccaf06487f98201c512548aa4edebaee603b
tree3223091d3a52a5ddf1804f5ac016ac83328a0399
parent3bf182a4c33629f719d6b49577d88fbfc78708ba
x86: ioapic: Avoid redundant lookup of irq_cfg

The caller of ioapic_register_intr() has a pointer to the irq_cfg for
the irq already. Hand it in to avoid a full lookup.

In msi_compose_msg() the pointer to irq_cfg is already available. No
need to look it up again.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c