diff options
author | Jason Low <jason.low2@hp.com> | 2013-09-13 20:26:51 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-09-20 12:03:41 +0200 |
commit | abfafa54db9aba404e8e6763503f04d35bd07138 (patch) | |
tree | 64a965459a5de970ff15265a9cd9f436591cadde /.gitignore | |
parent | sched/balancing: Prevent the reselection of a previous env.dst_cpu if some ta... (diff) | |
download | linux-abfafa54db9aba404e8e6763503f04d35bd07138.tar.xz linux-abfafa54db9aba404e8e6763503f04d35bd07138.zip |
sched: Reduce overestimating rq->avg_idle
When updating avg_idle, if the delta exceeds some max value, then avg_idle
gets set to the max, regardless of what the previous avg was. This can cause
avg_idle to often be overestimated.
This patch modifies the way we update avg_idle by always updating it with the
function call to update_avg() first. Then, if avg_idle exceeds the max, we set
it to the max.
Signed-off-by: Jason Low <jason.low2@hp.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1379096813-3032-2-git-send-email-jason.low2@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions