Sched/walt/walt_cfs: Improve the scheduler

This change is for general scheduler improvemnts.

Change-Id: Ic1b53470b3ebc9a8c2d34d34200c4b671af95840
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
Satya Durga Srinivasu Prabhala 2021-08-03 05:22:22 -07:00 committed by Rishabh Bhatnagar
parent 1a9ac70efd
commit 179319a53c

View File

@ -312,6 +312,10 @@ static void walt_find_best_target(struct sched_domain *sd,
if (fbt_env->skip_cpu == i)
continue;
if (per_task_boost(cpu_rq(i)->curr) ==
TASK_BOOST_STRICT_MAX)
continue;
/*
* p's blocked utilization is still accounted for on prev_cpu
* so prev_cpu will receive a negative bias due to the double
@ -387,10 +391,6 @@ static void walt_find_best_target(struct sched_domain *sd,
if (best_idle_cpu_cluster != -1)
continue;
if (per_task_boost(cpu_rq(i)->curr) ==
TASK_BOOST_STRICT_MAX)
continue;
/*
* Compute the maximum possible capacity we expect
* to have available on this CPU once the task is