sched: tg->se->load should be initialised to tg->shares
authorYong Zhang <yong.zhang0@gmail.com>
Mon, 24 Jan 2011 00:59:17 +0000 (00:59 +0000)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:53:10 +0000 (06:53 -0700)
commit1bcfeb96a57b6b678607cc8db7a7ed0948386ccb
tree6be10a5c926bc6b17132d3a8ef50cbd48cd861b1
parentf03d795940f13b858d839880eba9fe20cd118b48
sched: tg->se->load should be initialised to tg->shares

Michael reported that when enable autogroup on UP, system
responsiveness becomes very bad.
Because in init_tg_cfs_entry() we initialise se->load
to 0 instead of tg->shares, in the end we have 0-weight
sched entity on rq, then lead to misbehavior.

Reported-by: Michael Witten <mfwitten@gmail.com>
Reported-by: Christian Kujau <christian@nerdbynature.de>
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
kernel/sched.c