x86: ioapic: Implement and use io_apic_setup_irq_pin_once()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 16:47:41 +0000 (17:47 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 17:58:09 +0000 (18:58 +0100)
io_apic_set_pci_routing() and mp_save_irq() check the pin_programmed
bit before calling io_apic_setup_irq_pin() and set the bit when the
pin was setup.

Move that duplicated code into a separate function and use it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

No differences found