[Patch V4 16/42] x86, irq: introduce some helper utilities to improve readability

2014-06-09 Thread Jiang Liu
It also fixes an off by one bug in if ((ioapic_idx > 0) && (irq > NR_IRQS_LEGACY)) It should be if ((ioapic_idx > 0) && (irq >= NR_IRQS_LEGACY)) Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |2 ++ arch/x86/kernel/apic/io_apic.c | 29

[Patch V4 16/42] x86, irq: introduce some helper utilities to improve readability

2014-06-09 Thread Jiang Liu
It also fixes an off by one bug in if ((ioapic_idx 0) (irq NR_IRQS_LEGACY)) It should be if ((ioapic_idx 0) (irq = NR_IRQS_LEGACY)) Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/io_apic.h |2 ++ arch/x86/kernel/apic/io_apic.c | 29