diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 15:25:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 15:25:06 -0400 |
commit | b640f042faa2a2fad6464f259a8afec06e2f6386 (patch) | |
tree | 44a2943f91859422a207612229031a767c0accd5 /arch | |
parent | 871fa90791a6f83dd8e2e489feb9534a8c02088d (diff) | |
parent | b8ec757390282e21d349bf6b602a8cb182da0429 (diff) |
Merge branch 'topic/slab/earlyboot' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'topic/slab/earlyboot' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
vgacon: use slab allocator instead of the bootmem allocator
irq: use kcalloc() instead of the bootmem allocator
sched: use slab in cpupri_init()
sched: use alloc_cpumask_var() instead of alloc_bootmem_cpumask_var()
memcg: don't use bootmem allocator in setup code
irq/cpumask: make memoryless node zero happy
x86: remove some alloc_bootmem_cpumask_var calling
vt: use kzalloc() instead of the bootmem allocator
sched: use kzalloc() instead of the bootmem allocator
init: introduce mm_init()
vmalloc: use kzalloc() instead of alloc_bootmem()
slab: setup allocators earlier in the boot sequence
bootmem: fix slab fallback on numa
bootmem: use slab if bootmem is no longer available
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 1946fac42ab3..94605e7f6a54 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -177,16 +177,18 @@ int __init arch_early_irq_init(void) | |||
177 | struct irq_cfg *cfg; | 177 | struct irq_cfg *cfg; |
178 | struct irq_desc *desc; | 178 | struct irq_desc *desc; |
179 | int count; | 179 | int count; |
180 | int node; | ||
180 | int i; | 181 | int i; |
181 | 182 | ||
182 | cfg = irq_cfgx; | 183 | cfg = irq_cfgx; |
183 | count = ARRAY_SIZE(irq_cfgx); | 184 | count = ARRAY_SIZE(irq_cfgx); |
185 | node= cpu_to_node(boot_cpu_id); | ||
184 | 186 | ||
185 | for (i = 0; i < count; i++) { | 187 | for (i = 0; i < count; i++) { |
186 | desc = irq_to_desc(i); | 188 | desc = irq_to_desc(i); |
187 | desc->chip_data = &cfg[i]; | 189 | desc->chip_data = &cfg[i]; |
188 | alloc_bootmem_cpumask_var(&cfg[i].domain); | 190 | alloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node); |
189 | alloc_bootmem_cpumask_var(&cfg[i].old_domain); | 191 | alloc_cpumask_var_node(&cfg[i].old_domain, GFP_NOWAIT, node); |
190 | if (i < NR_IRQS_LEGACY) | 192 | if (i < NR_IRQS_LEGACY) |
191 | cpumask_setall(cfg[i].domain); | 193 | cpumask_setall(cfg[i].domain); |
192 | } | 194 | } |