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

Commit 9b5b94c9 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: avoid unnecessary HMP scheduler stat re-accounting



When sched_entity's runnable average changes, before and after, we
decrease and increase HMP scheduler's statistics of the sched_entity to
take into account of updated runnable average.  In that period, however,
other CPUs would see that the runnable average updating CPU's load as
less than actual.  This is suboptimal and can lead improper task placement
and load balance decision.

We can avoid such situation at least with window based load tracking as
sched_entity's load average which is for PELT won't affect to HMP
scheduler's load tracking statistics.  Thus fix to update HMP statistics
only when HMP scheduler uses PELT based load statistics.

Change-Id: I9eb615c248c79daab5d22cbb4a994f94be6a968d
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 20a5b840
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