diff options
-rw-r--r-- | drivers/xen/events.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index ed7527b3745a..3141e149d595 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/irq.h> | 26 | #include <linux/irq.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/string.h> | 28 | #include <linux/string.h> |
29 | #include <linux/bootmem.h> | ||
29 | 30 | ||
30 | #include <asm/ptrace.h> | 31 | #include <asm/ptrace.h> |
31 | #include <asm/irq.h> | 32 | #include <asm/irq.h> |
@@ -831,8 +832,8 @@ void __init xen_init_IRQ(void) | |||
831 | int i; | 832 | int i; |
832 | size_t size = nr_cpu_ids * sizeof(struct cpu_evtchn_s); | 833 | size_t size = nr_cpu_ids * sizeof(struct cpu_evtchn_s); |
833 | 834 | ||
834 | cpu_evtchn_mask_p = kmalloc(size, GFP_KERNEL); | 835 | cpu_evtchn_mask_p = alloc_bootmem(size); |
835 | BUG_ON(cpu_evtchn_mask == NULL); | 836 | BUG_ON(cpu_evtchn_mask_p == NULL); |
836 | 837 | ||
837 | init_evtchn_cpu_bindings(); | 838 | init_evtchn_cpu_bindings(); |
838 | 839 | ||