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

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

Merge "sched: avoid running idle_balance() on behalf of wrong CPU"

parents ccf93194 d577d4a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7454,7 +7454,7 @@ void idle_balance(int this_cpu, struct rq *this_rq)
	 * lowest level domain, run load balance on behalf of that
	 * most power-efficient idle CPU. */
	rcu_read_lock();
	sd = rcu_dereference_check_sched_domain(this_rq->sd);
	sd = rcu_dereference(per_cpu(sd_llc, this_cpu));
	if (sd && sysctl_sched_enable_power_aware) {
		for_each_cpu(i, sched_domain_span(sd)) {
			if (i == this_cpu || idle_cpu(i)) {