aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2015-03-24 16:57:11 +0100
committerVincent Guittot <vincent.guittot@linaro.org>2015-04-08 13:10:44 +0200
commitc8274fe3f37dd2fcdc09e8597f62d79f1e4481e0 (patch)
tree7a40ad624f625ffb8c34581fb711bc957824bda3 /drivers/cpufreq
parent7ea5fdaf89010efaa8f8c9c8e57131f1bc7edd73 (diff)
sched: Include blocked utilization in usage tracking
Add the blocked utilization contribution to group sched_entity utilization (se->avg.utilization_avg_contrib) and to get_cpu_usage(). With this change cpu usage now includes recent usage by currently non-runnable tasks, hence it provides a more stable view of the cpu usage. It does, however, also mean that the meaning of usage is changed: A cpu may be momentarily idle while usage >0. It can no longer be assumed that cpu usage >0 implies runnable tasks on the rq. cfs_rq->utilization_load_avg or nr_running should be used instead to get the current rq status. cc: Ingo Molnar <mingo@redhat.com> cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com> Conflicts: kernel/sched/fair.c
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions