]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4beb68a4369cf329608295b33db8b0e654cdf58
treeaa384f35760185200183a0a6f53ec8e4ce1d553f
parent8c9f92d06eb9b0c26b4ffeefa05afe2cbfd58f33
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