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

Commit cfde0fd6 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: Force balancing on NOHZ balance if local group has capacity"

parents 51b0db17 3d9aec71
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -9709,8 +9709,11 @@ static struct sched_group *find_busiest_group(struct lb_env *env)
	if (busiest->group_type == group_imbalanced)
		goto force_balance;

	/* SD_BALANCE_NEWIDLE trumps SMP nice when underutilized */
	if (env->idle == CPU_NEWLY_IDLE && group_has_capacity(env, local) &&
	/*
	 * When dst_cpu is idle, prevent SMP nice and/or asymmetric group
	 * capacities from resulting in underutilization due to avg_load.
	 */
	if (env->idle != CPU_NOT_IDLE && group_has_capacity(env, local) &&
	    busiest->group_no_capacity)
		goto force_balance;