aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2008-12-05 21:58:33 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-08 08:31:54 -0500
commitbe5d5350a937cd8513b258739f1099420129e96f (patch)
tree9864a69da06dff2b4e0973d41d440c9d73fbc117 /arch/x86/kernel/setup.c
parent99d093d12897562a253540a902bbf65ec16042ac (diff)
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>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 9d5674f7b6cc..a3834f123206 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -1082,7 +1082,7 @@ void __init setup_arch(char **cmdline_p)
1082 ioapic_init_mappings(); 1082 ioapic_init_mappings();
1083 1083
1084 /* need to wait for io_apic is mapped */ 1084 /* need to wait for io_apic is mapped */
1085 nr_irqs = probe_nr_irqs(); 1085 probe_nr_irqs_gsi();
1086 1086
1087 kvm_guest_init(); 1087 kvm_guest_init();
1088 1088