[RFC Patch Part1 V1 25/30] x86, irq: introduce two helper functions to support irqdomain map operation

2014-05-16 Thread Jiang Liu
Currently there are multiple entries to program IOAPIC pins, such as io_apic_setup_irq_pin_once(), io_apic_set_pci_routing() and setup_IO_APIC_irq_extra() etc. This patch introduces two functions to help consolidate the code to program IOAPIC pins. Function mp_set_pin_attr() is used to optionally

[RFC Patch Part1 V1 25/30] x86, irq: introduce two helper functions to support irqdomain map operation

2014-05-16 Thread Jiang Liu
Currently there are multiple entries to program IOAPIC pins, such as io_apic_setup_irq_pin_once(), io_apic_set_pci_routing() and setup_IO_APIC_irq_extra() etc. This patch introduces two functions to help consolidate the code to program IOAPIC pins. Function mp_set_pin_attr() is used to optionally