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

Skip to content
Commit 98ae7e3c authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar Committed by Satya Durga Srinivasu Prabhala
Browse files

sched/fair: fix imbalance calculations in misfit balancing



For misfit group type, load balancer tries to help independent of
group's avg load by pulling misfit task from the busy group, but it
calculates average load base imbalance between domains and consider
that in its decision. And it boosts the imbalance with maximum of
above calculated imbalance and busiest misfit task load for newly
idle balancing.

For Big.Little systems, local(Big) avg load can be greater than
domain's avg load and busiest (Little) avg load can be less than domain's
avg load. Which makes imbalance calculations go wrong and leads to
incorrect load balance decisions.

Make sure average load based imbalance calculations are performed only if
busiest avg load is greater than domain avg load or local avg load less
than domain avg load.

Change-Id: I40fc5b011455612d0e9cd99595e2fc8e60db4626
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
[satyap@codeaurora.org: fix trivial merge conflicts]
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent f2836bd6
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