sched: Separate group-scheduling code more clearly
authorJan H. Schönherr <schnhrr@cs.tu-berlin.de>
Thu, 14 Jul 2011 16:32:43 +0000 (18:32 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Jul 2011 16:01:54 +0000 (18:01 +0200)
commitacb5a9ba3bd7cd8b3264f67a3789a9587d3b935b
treeaa384f35760185200183a0a6f53ec8e4ce1d553f
parent26a148eb9c790149750f7e77da0d96029443d400
sched: Separate group-scheduling code more clearly

Clean up cfs/rt runqueue initialization by moving group scheduling
related code into the corresponding functions.

Also, keep group scheduling as an add-on, so that things are only done
additionally, i. e. remove the init_*_rq() calls from init_tg_*_entry().
(This removes a redundant initalization during sched_init()).

In case of group scheduling rt_rq->highest_prio.curr is now initialized
twice, but adding another #ifdef seems not worth it.

Signed-off-by: Jan H. Schönherr <schnhrr@cs.tu-berlin.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1310661163-16606-1-git-send-email-schnhrr@cs.tu-berlin.de
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c