]> git.baikalelectronics.ru Git - kernel.git/commit
sched/balancing: Fix cfs_rq->task_h_load calculation
authorVladimir Davydov <vdavydov@parallels.com>
Sat, 14 Sep 2013 15:39:46 +0000 (19:39 +0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 20 Sep 2013 09:59:39 +0000 (11:59 +0200)
commit7360246380c0e5b3a622c61c4e82076701b11356
tree48d20522106c153c20cb813531ad05dc8027b589
parent35fa07be66d4a9b3a640dfeb15d2a554b1afab15
sched/balancing: Fix cfs_rq->task_h_load calculation

Patch a003a2 (sched: Consider runnable load average in move_tasks())
sets all top-level cfs_rqs' h_load to rq->avg.load_avg_contrib, which is
always 0. This mistype leads to all tasks having weight 0 when load
balancing in a cpu-cgroup enabled setup. There obviously should be sum
of weights of all runnable tasks there instead. Fix it.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Reviewed-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1379173186-11944-1-git-send-email-vdavydov@parallels.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c