x86: MSI start irq numbering from nr_irqs_gsi
authorYinghai Lu <yinghai@kernel.org>
Sat, 6 Dec 2008 02:58:33 +0000 (18:58 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Dec 2008 13:31:54 +0000 (14:31 +0100)
commitbe5d5350a937cd8513b258739f1099420129e96f
tree9864a69da06dff2b4e0973d41d440c9d73fbc117
parent99d093d12897562a253540a902bbf65ec16042ac
x86: MSI start irq numbering from nr_irqs_gsi

Impact: sanitize MSI irq number ordering from top-down to bottom-up

Increase new MSI IRQs starting from nr_irqs_gsi (which is somewhere below
256), instead of decreasing from NR_IRQS. (The latter method can result
in confusingly high IRQ numbers - if NR_CPUS is set to a high value and
NR_IRQS scales up to a high value.)

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/io_apic.h
arch/x86/kernel/io_apic.c
arch/x86/kernel/setup.c