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, 2 Apr 2012 20:09:41 +0000 (13:09 -0700)
commit5c30e984bf431eb4585b633f2a568f8aa705ebc6
treec2fea971fc6ce64c1c9f93cc6362ed078832945b
parent8e98e69be313c92d0fd2006a9ad7ae46a89ad5e8
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