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

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

sched/fair: fix prefer_idle behaviour



prefer_idle is meant for reducing wake_latencies for the task and
hence such a task needs to be placed on an idle cpu and if idle
isn't available, the most spare active cpu.

Currently the code limits the search to the cluster of the
start_cpu, i.e. if an active cpu is found it uses it and doesn't
check for more clusters for idle cpu.

Fix this by allowing to search more clusters regardless of a cpu
is found. But still keep the optimization to break from searching
more groups based on schedtune boost and the capacity of next
cluster.

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