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

Commit a54b6930 authored by Joonwoo Park's avatar Joonwoo Park Committed by Syed Rameez Mustafa
Browse files

sched: don't bias towards waker cluster when sched_boost is set



When sched_boost is set scheduler needs to place task on the least
loaded CPU or performance CPU for better performance.

Change-Id: I41512b4af9cd56712a241c114583b0021d1395d2
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent c6b7d967
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3056,7 +3056,8 @@ bias_to_prev_cpu(struct cpu_select_env *env, struct cluster_cpu_stats *stats)
static inline bool
wake_to_waker_cluster(struct cpu_select_env *env)
{
	return !env->need_idle && !env->reason && env->sync &&
	return env->boost_type == SCHED_BOOST_NONE &&
	       !env->need_idle && !env->reason && env->sync &&
	       task_load(current) > sched_big_waker_task_load &&
	       task_load(env->p) < sched_small_wakee_task_load;
}