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

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

sched/fair: relax preferred cluster requirement



Although we steer the start_cpu towards preferred cluster, we reject
looking at other groups. This leads to unoptimal placements if the
task cannot be accommodated on the preferred cluster.

For example, for a task whose preferred cluster is the smallest cluster
but all the cpus in the smallest cluster cannot accommodate this task,
we skip looking at the higher clusters and end up returning -1 from
find_best_target() and end up choosing the prev_cpu or a fallback
scheme. All this when there could be a better cpu available in another
cluster.

Fix this by considering groups that do not belong to preferred
cluster. With this change preferred cluster will only be used to
influence the start cpu during placement.

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