From: Paul Turner Date: Thu, 4 Oct 2012 11:18:30 +0000 (+0200) Subject: sched: Aggregate load contributed by task entities on parenting cfs_rq X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~75^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dac754e10a5d41d94d2d2365c0345d4f215a266;p=pandora-kernel.git sched: Aggregate load contributed by task entities on parenting cfs_rq For a given task t, we can compute its contribution to load as: task_load(t) = runnable_avg(t) * weight(t) On a parenting cfs_rq we can then aggregate: runnable_load(cfs_rq) = \Sum task_load(t), for all runnable children t Maintain this bottom up, with task entities adding their contributed load to the parenting cfs_rq sum. When a task entity's load changes we add the same delta to the maintained sum. Signed-off-by: Paul Turner Reviewed-by: Ben Segall Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20120823141506.514678907@google.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed