|
@@ -164,7 +164,7 @@ int __init early_irq_init(void)
|
|
node = first_online_node;
|
|
node = first_online_node;
|
|
|
|
|
|
/* allocate irq_desc_ptrs array based on nr_irqs */
|
|
/* allocate irq_desc_ptrs array based on nr_irqs */
|
|
- irq_desc_ptrs = alloc_bootmem(nr_irqs * sizeof(void *));
|
|
|
|
|
|
+ irq_desc_ptrs = kcalloc(nr_irqs, sizeof(void *), GFP_NOWAIT);
|
|
|
|
|
|
/* allocate based on nr_cpu_ids */
|
|
/* allocate based on nr_cpu_ids */
|
|
kstat_irqs_legacy = kzalloc_node(NR_IRQS_LEGACY * nr_cpu_ids *
|
|
kstat_irqs_legacy = kzalloc_node(NR_IRQS_LEGACY * nr_cpu_ids *
|