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

Commit c0a795be authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched/fair: Remove EAS enforcement in find_best_target()



commit 63c27502 ("sched: fair: Always try to use energy
efficient cpu for wakeups") forces energy aware task placement
for all tasks. So there is no need to have any additional
checks in find_best_target() to enforce EAS mode.

Change-Id: I001326afcd14b221dbbc545b82d4f9204bf7417d
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 17e3ca63
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -7166,19 +7166,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
				continue;
			}

			/*
			 * Enforce EAS mode
			 *
			 * For non latency sensitive tasks, skip CPUs that
			 * will be overutilized by moving the task there.
			 *
			 * The goal here is to remain in EAS mode as long as
			 * possible at least for !prefer_idle tasks.
			 */
			if ((new_util * capacity_margin) >
			    (capacity_orig * SCHED_CAPACITY_SCALE))
				continue;

			/*
			 * Favor CPUs with smaller capacity for Non latency
			 * sensitive tasks.