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

Commit 79f170c9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: fair: Always try to use energy efficient cpu for wakeups"

parents b80a0f61 63c27502
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7634,6 +7634,14 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
	int want_energy = 0;
	int sync = wake_flags & WF_SYNC;

	if (energy_aware()) {
		rcu_read_lock();
		new_cpu = find_energy_efficient_cpu(energy_sd, p,
						cpu, prev_cpu, sync);
		rcu_read_unlock();
		return new_cpu;
	}

	rcu_read_lock();

	if (sd_flag & SD_BALANCE_WAKE) {