diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-06-11 01:35:27 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-06-11 12:27:11 -0400 |
commit | 4bdddf8ff9bbb8aa7b4d7847586202bd25842c90 (patch) | |
tree | b1ba7c6fcb1d6cd4d7260cbcea459ad75ba0b095 /kernel/sched.c | |
parent | 959982fee4e635c61780e989c3e34267143fcc02 (diff) |
sched: use alloc_cpumask_var() instead of alloc_bootmem_cpumask_var()
Slab is initialized when sched_init() runs now so lets use alloc_cpumask_var().
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index a9ff9533355b..12cc09cf5147 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -9310,13 +9310,13 @@ void __init sched_init(void) | |||
9310 | current->sched_class = &fair_sched_class; | 9310 | current->sched_class = &fair_sched_class; |
9311 | 9311 | ||
9312 | /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */ | 9312 | /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */ |
9313 | alloc_bootmem_cpumask_var(&nohz_cpu_mask); | 9313 | alloc_cpumask_var(&nohz_cpu_mask, GFP_NOWAIT); |
9314 | #ifdef CONFIG_SMP | 9314 | #ifdef CONFIG_SMP |
9315 | #ifdef CONFIG_NO_HZ | 9315 | #ifdef CONFIG_NO_HZ |
9316 | alloc_bootmem_cpumask_var(&nohz.cpu_mask); | 9316 | alloc_cpumask_var(&nohz.cpu_mask, GFP_NOWAIT); |
9317 | alloc_bootmem_cpumask_var(&nohz.ilb_grp_nohz_mask); | 9317 | alloc_cpumask_var(&nohz.ilb_grp_nohz_mask, GFP_NOWAIT); |
9318 | #endif | 9318 | #endif |
9319 | alloc_bootmem_cpumask_var(&cpu_isolated_map); | 9319 | alloc_cpumask_var(&cpu_isolated_map, GFP_NOWAIT); |
9320 | #endif /* SMP */ | 9320 | #endif /* SMP */ |
9321 | 9321 | ||
9322 | scheduler_running = 1; | 9322 | scheduler_running = 1; |