|
@@ -927,9 +927,9 @@ static struct irq_chip xen_dynamic_chip __read_mostly = {
|
|
void __init xen_init_IRQ(void)
|
|
void __init xen_init_IRQ(void)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
- size_t size = nr_cpu_ids * sizeof(struct cpu_evtchn_s);
|
|
|
|
|
|
|
|
- cpu_evtchn_mask_p = alloc_bootmem(size);
|
|
|
|
|
|
+ cpu_evtchn_mask_p = kcalloc(nr_cpu_ids, sizeof(struct cpu_evtchn_s),
|
|
|
|
+ GFP_KERNEL);
|
|
BUG_ON(cpu_evtchn_mask_p == NULL);
|
|
BUG_ON(cpu_evtchn_mask_p == NULL);
|
|
|
|
|
|
init_evtchn_cpu_bindings();
|
|
init_evtchn_cpu_bindings();
|