aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apic')
-rw-r--r--arch/x86/kernel/apic/io_apic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 06da8fe2647..5aae718a713 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -1565,11 +1565,11 @@ void setup_IO_APIC_irq_extra(u32 gsi)
1565 return; 1565 return;
1566 1566
1567 irq = pin_2_irq(idx, apic_id, pin); 1567 irq = pin_2_irq(idx, apic_id, pin);
1568#ifdef CONFIG_SPARSE_IRQ 1568
1569 desc = irq_to_desc(irq); 1569 /* Only handle the non legacy irqs on secondary ioapics */
1570 if (desc) 1570 if (apic_id == 0 || irq < NR_IRQS_LEGACY)
1571 return; 1571 return;
1572#endif 1572
1573 desc = irq_to_desc_alloc_node(irq, node); 1573 desc = irq_to_desc_alloc_node(irq, node);
1574 if (!desc) { 1574 if (!desc) {
1575 printk(KERN_INFO "can not get irq_desc for %d\n", irq); 1575 printk(KERN_INFO "can not get irq_desc for %d\n", irq);