diff options
author | Morten Rasmussen <Morten.Rasmussen@arm.com> | 2012-09-14 14:38:08 +0100 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2012-10-03 16:28:51 +0530 |
commit | 6d9d0f51505ba4e65bfb13cebb732ab18a41f922 (patch) | |
tree | 319ac0114b48275b62471eb0bd1d53f2d6498ac7 /include | |
parent | 7bf24537e753209194c43f41fb3adff82e7b8bc3 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 29bbe069d67..971baab9a1b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1150,6 +1150,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; }; |