diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-06-11 18:07:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 23:04:36 -0400 |
commit | 12274e96b42884f043dfaa87eb1e5e10281bfac3 (patch) | |
tree | 7171d6a49dbac49826670128e114c52e7539782d /arch/x86/kernel/apic/io_apic.c | |
parent | e14112d1bd5e193166b54be19119cf6440470560 (diff) |
x86: use zalloc_cpumask_var in arch_early_irq_init
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>
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 94605e7f6a54..ef8d9290c7ea 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -187,8 +187,8 @@ int __init arch_early_irq_init(void) | |||
187 | for (i = 0; i < count; i++) { | 187 | for (i = 0; i < count; i++) { |
188 | desc = irq_to_desc(i); | 188 | desc = irq_to_desc(i); |
189 | desc->chip_data = &cfg[i]; | 189 | desc->chip_data = &cfg[i]; |
190 | alloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node); | 190 | zalloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node); |
191 | alloc_cpumask_var_node(&cfg[i].old_domain, GFP_NOWAIT, node); | 191 | zalloc_cpumask_var_node(&cfg[i].old_domain, GFP_NOWAIT, node); |
192 | if (i < NR_IRQS_LEGACY) | 192 | if (i < NR_IRQS_LEGACY) |
193 | cpumask_setall(cfg[i].domain); | 193 | cpumask_setall(cfg[i].domain); |
194 | } | 194 | } |