浏览代码

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.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Jacob Pan 13 年之前
父节点
当前提交
bb84ac2d3a
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      arch/x86/kernel/apic/io_apic.c

+ 1 - 3
arch/x86/kernel/apic/io_apic.c

@@ -193,10 +193,8 @@ int __init arch_early_irq_init(void)
 	struct irq_cfg *cfg;
 	struct irq_cfg *cfg;
 	int count, node, i;
 	int count, node, i;
 
 
-	if (!legacy_pic->nr_legacy_irqs) {
-		nr_irqs_gsi = 0;
+	if (!legacy_pic->nr_legacy_irqs)
 		io_apic_irqs = ~0UL;
 		io_apic_irqs = ~0UL;
-	}
 
 
 	for (i = 0; i < nr_ioapics; i++) {
 	for (i = 0; i < nr_ioapics; i++) {
 		ioapics[i].saved_registers =
 		ioapics[i].saved_registers =