diff options
| author | Jason Low <jason.low2@hp.com> | 2013-08-31 01:47:10 -0500 |
|---|---|---|
| committer | John Brewer <gzroms@hotmail.com> | 2014-08-03 20:44:49 -0400 |
| commit | f2e42ab7d5063bf6b7b6fed99231b49c43ce9bb8 (patch) | |
| tree | 6311dbfa9221a6ba1418ee89634630a14c966af8 /net/lapb/lapb_timer.c | |
| parent | 7e5292f26b24c913b4f26233fa29c25b3dbb39ab (diff) | |
sched: Reduce overestimating rq->avg_idle
Date Thu, 29 Aug 2013 13:05:34 -0700
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>
Signed-off-by: Paul Reioux <reioux@gmail.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
