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

Commit 6dbd0061 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala
Browse files

sched/fair: make upmigration of big tasks possible under boost scenarios



upmigration of big tasks is broken right now when boost is set as
we skip checking for migration thresholds when task is running on
an intermediate CPU. Fix it by updating the check.

Change-Id: I84de520ef7998e5fab26734cc3d20fc314fdca8b
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent c78e874c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -7000,8 +7000,9 @@ static inline bool task_fits_max(struct task_struct *p, int cpu)
		return true;

	if (sched_boost_policy() == SCHED_BOOST_ON_BIG &&
					task_sched_boost(p))
		return !is_min_capacity_cpu(cpu);
					task_sched_boost(p) &&
					is_min_capacity_cpu(cpu))
		return false;

	return task_fits_capacity(p, capacity, cpu);
}