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

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

Merge "sched: Limit LBF_PWR_ACTIVE_BALANCE to within cluster"

parents 0cce27be 66b5ce9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5997,7 +5997,7 @@ static bool update_sd_pick_busiest(struct lb_env *env,
	/* Mark a less power-efficient CPU as busy only if we haven't
	 * seen a busy group yet. We want to prioritize spreading
	 * work over power optimization. */
	if (!sds->busiest && sg->group_weight == 1 &&
	if (!sds->busiest && (capacity(env->dst_rq) == group_rq_capacity(sg)) &&
	    sgs->sum_nr_running && (env->idle != CPU_NOT_IDLE) &&
	    power_cost_at_freq(env->dst_cpu, 0) <
	    power_cost_at_freq(cpumask_first(sched_group_cpus(sg)), 0)) {