]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commit710dcda64369e3f3704a0eee502ce27dbf9fedc1
tree42f74f2bef2e6b05da7f58163fcb787d267f34e5
parentb77cf6a8609a8450786c572bc8af6ad068022dbe
x86: ioapic: Implement and use io_apic_setup_irq_pin_once()

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>
arch/x86/kernel/apic/io_apic.c