sched/walt: use num_mvp_tasks for check if rq have mvp task

There is mvp task running on rq if num_mvp_task not equal 0,
so use num_mvp_tasks check if rq have mvp task.

Change-Id: Ia653b8d1dbbaa642ccc06296338617252bf1225b
Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
This commit is contained in:
Tengfei Fan 2022-02-28 14:13:38 +08:00 committed by Rishabh Bhatnagar
parent 4bd7dbf686
commit 52016a65f0

View File

@ -327,8 +327,7 @@ 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)
if (wrq->num_mvp_tasks > 0)
continue;
/*