Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 36e08e6a authored by Jason Low's avatar Jason Low Committed by alexax66
Browse files

sched: Reduce overestimating rq->avg_idle When updating avg_idle, if the delta...


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: default avatarJason Low <jason.low2@hp.com>
Reviewed-by: default avatarRik van Riel <riel@redhat.com>

Signed-off-by: default avatarPaul Reioux <reioux@gmail.com>
parent 0658dc8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment