diff options
-rw-r--r-- | drivers/xen/events.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 0fcfb4a1ceab..1e39908d02f9 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -104,7 +104,12 @@ static int *evtchn_to_irq; | |||
104 | struct cpu_evtchn_s { | 104 | struct cpu_evtchn_s { |
105 | unsigned long bits[NR_EVENT_CHANNELS/BITS_PER_LONG]; | 105 | unsigned long bits[NR_EVENT_CHANNELS/BITS_PER_LONG]; |
106 | }; | 106 | }; |
107 | static struct cpu_evtchn_s *cpu_evtchn_mask_p; | 107 | |
108 | static __initdata struct cpu_evtchn_s init_evtchn_mask = { | ||
109 | .bits[0 ... (NR_EVENT_CHANNELS/BITS_PER_LONG)-1] = ~0ul, | ||
110 | }; | ||
111 | static struct cpu_evtchn_s *cpu_evtchn_mask_p = &init_evtchn_mask; | ||
112 | |||
108 | static inline unsigned long *cpu_evtchn_mask(int cpu) | 113 | static inline unsigned long *cpu_evtchn_mask(int cpu) |
109 | { | 114 | { |
110 | return cpu_evtchn_mask_p[cpu].bits; | 115 | return cpu_evtchn_mask_p[cpu].bits; |