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

Commit 962d1f3f authored by Ke Wang's avatar Ke Wang Committed by Todd Kjos
Browse files

ANDROID: sched: EAS: check energy_aware() before calling...


ANDROID: sched: EAS: check energy_aware() before calling select_energy_cpu_brute() in up-migrate path

In up-migrate path, select_energy_cpu_brute() was called directly
without checking energy_aware(). This will make select_energy_cpu_brute()
always worked even disabling energy_aware() on the asymmetric cpu
capacity system.

Signed-off-by: default avatarKe Wang <ke.wang@spreadtrum.com>
parent 202e0792
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9920,7 +9920,7 @@ void check_for_migration(struct rq *rq, struct task_struct *p)
	int active_balance;
	int cpu = task_cpu(p);

	if (rq->misfit_task) {
	if (energy_aware() && rq->misfit_task) {
		if (rq->curr->state != TASK_RUNNING ||
		    rq->curr->nr_cpus_allowed == 1)
			return;