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

Commit cfeb0f30 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: Return previous CPU when perf domains are not available"

parents 0a23931a 3a3643d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7669,6 +7669,8 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
	if (static_branch_unlikely(&sched_energy_present)) {
		rcu_read_lock();
		new_cpu = find_energy_efficient_cpu(p, prev_cpu, sync);
		if (unlikely(new_cpu < 0))
			new_cpu = prev_cpu;
		rcu_read_unlock();
		return new_cpu;
	}