x86: use zalloc_cpumask_var in arch_early_irq_init
authorYinghai Lu <yinghai@kernel.org>
Thu, 11 Jun 2009 22:07:48 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Jun 2009 03:04:36 +0000 (20:04 -0700)
So we make sure MAXSMP gets a cleared cpumask

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/apic/io_apic.c

index 94605e7f6a54105df0ef167874d810b2d02f4df2..ef8d9290c7ea724f7ed98960459859f80ac7f507 100644 (file)
@@ -187,8 +187,8 @@ int __init arch_early_irq_init(void)
        for (i = 0; i < count; i++) {
                desc = irq_to_desc(i);
                desc->chip_data = &cfg[i];
-               alloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node);
-               alloc_cpumask_var_node(&cfg[i].old_domain, GFP_NOWAIT, node);
+               zalloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node);
+               zalloc_cpumask_var_node(&cfg[i].old_domain, GFP_NOWAIT, node);
                if (i < NR_IRQS_LEGACY)
                        cpumask_setall(cfg[i].domain);
        }