From 67c3e9cc2a07fe390a703eea190cffc50fc2915d Mon Sep 17 00:00:00 2001 From: Jacob Pan Date: Fri, 15 Jul 2011 14:39:07 +0100 Subject: [PATCH] x86/apic: do not clear nr_irqs_gsi if no legacy irqs nr_legacy_irqs is set in probe_nr_irqs_gsi, we should not clear it after that. Otherwise, the result is that MSI irqs will be allocated from the wrong range for the systems without legacy PIC. Change-Id: Ib73f1de23d34cf5b8b549d43c371d7d8a58ecb52 Signed-off-by: Jacob Pan Signed-off-by: Dirk Brandewie --- arch/x86/kernel/apic/io_apic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index e529339..2b92e1d 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -197,10 +197,8 @@ int __init arch_early_irq_init(void) struct irq_cfg *cfg; int count, node, i; - if (!legacy_pic->nr_legacy_irqs) { - nr_irqs_gsi = 0; + if (!legacy_pic->nr_legacy_irqs) io_apic_irqs = ~0UL; - } for (i = 0; i < nr_ioapics; i++) { ioapics[i].saved_registers = -- 2.7.4