aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Turner <pjt@google.com>2012-08-23 07:14:25 -0700
committerViresh Kumar <viresh.kumar@linaro.org>2012-10-03 14:21:45 +0530
commitec3ca400fdebfd8cf5f361693519a8be1586637f (patch)
tree143a04602649b4a9f6c583f9bb950968c240af35 /include
parent29fb7f2279004bf8bfe5650f136fbbeb95c48537 (diff)
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 <pjt@google.com> Reviewed-by: Ben Segall <bsegall@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 73567f45edc..ebf78f8b1e1 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1147,6 +1147,7 @@ struct sched_avg {
*/
u32 runnable_avg_sum, runnable_avg_period;
u64 last_runnable_update;
+ unsigned long load_avg_contrib;
};
#ifdef CONFIG_SCHEDSTATS