diff options
Diffstat (limited to 'drivers/xen/events.c')
| -rw-r--r-- | drivers/xen/events.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 59e10a1286d5..912ac81b6dbf 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
| @@ -115,7 +115,9 @@ struct irq_info { | |||
| 115 | #define PIRQ_SHAREABLE (1 << 1) | 115 | #define PIRQ_SHAREABLE (1 << 1) |
| 116 | 116 | ||
| 117 | static int *evtchn_to_irq; | 117 | static int *evtchn_to_irq; |
| 118 | #ifdef CONFIG_X86 | ||
| 118 | static unsigned long *pirq_eoi_map; | 119 | static unsigned long *pirq_eoi_map; |
| 120 | #endif | ||
| 119 | static bool (*pirq_needs_eoi)(unsigned irq); | 121 | static bool (*pirq_needs_eoi)(unsigned irq); |
| 120 | 122 | ||
| 121 | static DEFINE_PER_CPU(unsigned long [NR_EVENT_CHANNELS/BITS_PER_LONG], | 123 | static DEFINE_PER_CPU(unsigned long [NR_EVENT_CHANNELS/BITS_PER_LONG], |
| @@ -277,10 +279,12 @@ static unsigned int cpu_from_evtchn(unsigned int evtchn) | |||
| 277 | return ret; | 279 | return ret; |
| 278 | } | 280 | } |
| 279 | 281 | ||
| 282 | #ifdef CONFIG_X86 | ||
| 280 | static bool pirq_check_eoi_map(unsigned irq) | 283 | static bool pirq_check_eoi_map(unsigned irq) |
| 281 | { | 284 | { |
| 282 | return test_bit(pirq_from_irq(irq), pirq_eoi_map); | 285 | return test_bit(pirq_from_irq(irq), pirq_eoi_map); |
| 283 | } | 286 | } |
| 287 | #endif | ||
| 284 | 288 | ||
| 285 | static bool pirq_needs_eoi_flag(unsigned irq) | 289 | static bool pirq_needs_eoi_flag(unsigned irq) |
| 286 | { | 290 | { |
