aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMorten Rasmussen <Morten.Rasmussen@arm.com>2012-09-14 14:38:08 +0100
committerViresh Kumar <viresh.kumar@linaro.org>2013-03-12 14:54:28 +0530
commit115472b3c6cf5240a0e54ecfc3612db0133f1e5c (patch)
tree743a90c68c38990c13080f6a03f648eb63c4ad49 /include
parentc1057acd610e8af30ec9fe78679bcd2800a8f248 (diff)
sched: entity load-tracking load_avg_ratio
This patch adds load_avg_ratio to each task. The load_avg_ratio is a variant of load_avg_contrib which is not scaled by the task priority. It is calculated like this: runnable_avg_sum * NICE_0_LOAD / (runnable_avg_period + 1). Signed-off-by: Morten Rasmussen <Morten.Rasmussen@arm.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 1e0939c9901..38970832a51 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1097,6 +1097,7 @@ struct sched_avg {
u64 last_runnable_update;
s64 decay_count;
unsigned long load_avg_contrib;
+ unsigned long load_avg_ratio;
u32 usage_avg_sum;
};