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

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

Merge "sched/fair: load balance if a group is overloaded"

parents a69d4681 974a2dce
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9904,6 +9904,11 @@ static inline void calculate_imbalance(struct lb_env *env, struct sd_lb_stats *s
	    (busiest->avg_load <= sds->avg_load ||
	     local->avg_load >= sds->avg_load)) {
		env->imbalance = 0;
		if (busiest->group_type == group_overloaded &&
				local->group_type <= group_misfit_task) {
			env->imbalance = busiest->load_per_task;
			return;
		}
		return fix_small_imbalance(env, sds);
	}