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

Skip to content
Commit 434dab22 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

sched/fair: do not reset target_capacity



Currently, we reset target_capacity to ULONG_MAX in placement boost.
This causes us to bypass that capacity check in the cpu loop thereby
allowing us to visit higher capacity cluster.

Instead choose to keep target_capacity intact and delete the capacity
check in cpu loop.

The capacity check was introduced by
commit cf9d0b63 ("sched/fair: fix
incorrect CPU selection for non latency sensitive tasks")
and it is safe to delete it because once we find a cpu in a group we
exit the group traversing loop. We will never have an situation
when we have found a cpu and are visiting higher capacity cluster,
except for placement boost when we intentionally want to visit higher
capacity cpus and were using the target_capacity = ULONG_MAX trick.

Change-Id: I73d25a1e7b30c0420e175371bd9f5911c71ddee0
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 7b2a034c
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