aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2009-06-11 01:41:22 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2009-06-11 12:27:12 -0400
commit0fb530291621c8b8a1b16abeeab05d9262489f71 (patch)
tree4b5fbb1781b279caf9cd20fb1ef5d04028548f43 /kernel/sched.c
parent4bdddf8ff9bbb8aa7b4d7847586202bd25842c90 (diff)
sched: use slab in cpupri_init()
Lets not use the bootmem allocator in cpupri_init() as slab is already up when it is run. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 12cc09cf5147..dcf2dc28931a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7795,7 +7795,7 @@ static int __init_refok init_rootdomain(struct root_domain *rd, bool bootmem)
7795 if (!alloc_cpumask_var(&rd->rto_mask, gfp)) 7795 if (!alloc_cpumask_var(&rd->rto_mask, gfp))
7796 goto free_online; 7796 goto free_online;
7797 7797
7798 if (cpupri_init(&rd->cpupri, false) != 0) 7798 if (cpupri_init(&rd->cpupri, bootmem) != 0)
7799 goto free_rto_mask; 7799 goto free_rto_mask;
7800 return 0; 7800 return 0;
7801 7801