sched/walt: make TASK_BOOST_STRICT_MAX task have high chance for running on prime core

TASK_BOOST_STRICT_MAX task can cause performance influence if it haven't
running on prime core, so do this for these tasks have high chance for
running on prime core.

Change-Id: I249dbe1c201934ea3c4610e93b1b71b24fb20d80
Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
This commit is contained in:
Tengfei Fan 2022-09-07 08:59:38 +08:00 committed by Sai Harshini Nimmala
parent 4349ffdf24
commit 30c5ecaa7f

View File

@ -343,7 +343,8 @@ static void walt_find_best_target(struct sched_domain *sd,
if (fbt_env->skip_cpu == i)
continue;
if (wrq->num_mvp_tasks > 0)
if (wrq->num_mvp_tasks > 0 &&
per_task_boost(p) != TASK_BOOST_STRICT_MAX)
continue;
/*