diff options
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 3db693bda91d..073edd1d3c66 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -58,7 +58,6 @@ | |||
58 | #include <asm/hypertransport.h> | 58 | #include <asm/hypertransport.h> |
59 | #include <asm/setup.h> | 59 | #include <asm/setup.h> |
60 | #include <asm/intr_remapping.h> | 60 | #include <asm/intr_remapping.h> |
61 | #include <asm/irq_remapping.h> | ||
62 | #include <asm/hpet.h> | 61 | #include <asm/hpet.h> |
63 | #include <asm/hw_irq.h> | 62 | #include <asm/hw_irq.h> |
64 | 63 | ||
@@ -87,6 +86,22 @@ void __init set_io_apic_ops(const struct io_apic_ops *ops) | |||
87 | io_apic_ops = *ops; | 86 | io_apic_ops = *ops; |
88 | } | 87 | } |
89 | 88 | ||
89 | #ifdef CONFIG_IRQ_REMAP | ||
90 | static void irq_remap_modify_chip_defaults(struct irq_chip *chip); | ||
91 | static inline bool irq_remapped(struct irq_cfg *cfg) | ||
92 | { | ||
93 | return cfg->irq_2_iommu.iommu != NULL; | ||
94 | } | ||
95 | #else | ||
96 | static inline bool irq_remapped(struct irq_cfg *cfg) | ||
97 | { | ||
98 | return false; | ||
99 | } | ||
100 | static inline void irq_remap_modify_chip_defaults(struct irq_chip *chip) | ||
101 | { | ||
102 | } | ||
103 | #endif | ||
104 | |||
90 | /* | 105 | /* |
91 | * Is the SiS APIC rmw bug present ? | 106 | * Is the SiS APIC rmw bug present ? |
92 | * -1 = don't know, 0 = no, 1 = yes | 107 | * -1 = don't know, 0 = no, 1 = yes |