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

Commit 40e13341 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

sched/fair: don't skip based on target capacity



commit 434dab22 ("sched/fair: do not
reset target_capacity") removed the snippet that skipped processing cpus
with higher capacity than the target.

This was because the skip was done later in the loop which did not
process further cpus unless we are in boost and have higher capacity
to visit next.

However a recent merge from upstream reintroduced this snippet.
commit b2c84630 ("Merge
android-4.14-p.61 (b7e55e84) into msm-4.14").

Remove that snippet again.

Change-Id: Id69f82b89b015fa24b8deaf5671069a631a90161
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 1e465bc9
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -7580,12 +7580,8 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
			if (capacity_orig < capacity_orig_of(cpu))
				continue;

			/*
			 * Favor CPUs with smaller capacity for non latency
			 * sensitive tasks.
			 */
			if (capacity_orig > target_capacity)
				continue;



			/*
			 * Case B) Non latency sensitive tasks on IDLE CPUs.