aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJason Low <[email protected]>2013-09-13 11:26:51 -0700
committerIngo Molnar <[email protected]>2013-09-20 12:03:41 +0200
commitabfafa54db9aba404e8e6763503f04d35bd07138 (patch)
tree64a965459a5de970ff15265a9cd9f436591cadde /lib/mpi/mpiutil.c
parent7aff2e3a56b724b79fa2d5abd10d8231ef8fb0c5 (diff)
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 <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Reviewed-by: Srikar Dronamraju <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions