diff options
| -rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 42cdc78427a2..d36e3d8be0f1 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
| @@ -1428,7 +1428,6 @@ void __setup_vector_irq(int cpu) | |||
| 1428 | 1428 | ||
| 1429 | static struct irq_chip ioapic_chip; | 1429 | static struct irq_chip ioapic_chip; |
| 1430 | static struct irq_chip ir_ioapic_chip; | 1430 | static struct irq_chip ir_ioapic_chip; |
| 1431 | static struct irq_chip msi_ir_chip; | ||
| 1432 | 1431 | ||
| 1433 | #define IOAPIC_AUTO -1 | 1432 | #define IOAPIC_AUTO -1 |
| 1434 | #define IOAPIC_EDGE 0 | 1433 | #define IOAPIC_EDGE 0 |
| @@ -2663,20 +2662,20 @@ static struct irq_chip ioapic_chip __read_mostly = { | |||
| 2663 | .retrigger = ioapic_retrigger_irq, | 2662 | .retrigger = ioapic_retrigger_irq, |
| 2664 | }; | 2663 | }; |
| 2665 | 2664 | ||
| 2666 | #ifdef CONFIG_INTR_REMAP | ||
| 2667 | static struct irq_chip ir_ioapic_chip __read_mostly = { | 2665 | static struct irq_chip ir_ioapic_chip __read_mostly = { |
| 2668 | .name = "IR-IO-APIC", | 2666 | .name = "IR-IO-APIC", |
| 2669 | .startup = startup_ioapic_irq, | 2667 | .startup = startup_ioapic_irq, |
| 2670 | .mask = mask_IO_APIC_irq, | 2668 | .mask = mask_IO_APIC_irq, |
| 2671 | .unmask = unmask_IO_APIC_irq, | 2669 | .unmask = unmask_IO_APIC_irq, |
| 2670 | #ifdef CONFIG_INTR_REMAP | ||
| 2672 | .ack = ack_x2apic_edge, | 2671 | .ack = ack_x2apic_edge, |
| 2673 | .eoi = ack_x2apic_level, | 2672 | .eoi = ack_x2apic_level, |
| 2674 | #ifdef CONFIG_SMP | 2673 | #ifdef CONFIG_SMP |
| 2675 | .set_affinity = set_ir_ioapic_affinity_irq, | 2674 | .set_affinity = set_ir_ioapic_affinity_irq, |
| 2676 | #endif | 2675 | #endif |
| 2676 | #endif | ||
| 2677 | .retrigger = ioapic_retrigger_irq, | 2677 | .retrigger = ioapic_retrigger_irq, |
| 2678 | }; | 2678 | }; |
| 2679 | #endif | ||
| 2680 | 2679 | ||
| 2681 | static inline void init_IO_APIC_traps(void) | 2680 | static inline void init_IO_APIC_traps(void) |
| 2682 | { | 2681 | { |
| @@ -3391,18 +3390,18 @@ static struct irq_chip msi_chip = { | |||
| 3391 | .retrigger = ioapic_retrigger_irq, | 3390 | .retrigger = ioapic_retrigger_irq, |
| 3392 | }; | 3391 | }; |
| 3393 | 3392 | ||
| 3394 | #ifdef CONFIG_INTR_REMAP | ||
| 3395 | static struct irq_chip msi_ir_chip = { | 3393 | static struct irq_chip msi_ir_chip = { |
| 3396 | .name = "IR-PCI-MSI", | 3394 | .name = "IR-PCI-MSI", |
| 3397 | .unmask = unmask_msi_irq, | 3395 | .unmask = unmask_msi_irq, |
| 3398 | .mask = mask_msi_irq, | 3396 | .mask = mask_msi_irq, |
| 3397 | #ifdef CONFIG_INTR_REMAP | ||
| 3399 | .ack = ack_x2apic_edge, | 3398 | .ack = ack_x2apic_edge, |
| 3400 | #ifdef CONFIG_SMP | 3399 | #ifdef CONFIG_SMP |
| 3401 | .set_affinity = ir_set_msi_irq_affinity, | 3400 | .set_affinity = ir_set_msi_irq_affinity, |
| 3402 | #endif | 3401 | #endif |
| 3402 | #endif | ||
| 3403 | .retrigger = ioapic_retrigger_irq, | 3403 | .retrigger = ioapic_retrigger_irq, |
| 3404 | }; | 3404 | }; |
| 3405 | #endif | ||
| 3406 | 3405 | ||
| 3407 | /* | 3406 | /* |
| 3408 | * Map the PCI dev to the corresponding remapping hardware unit | 3407 | * Map the PCI dev to the corresponding remapping hardware unit |
