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

Commit 974a2dce authored by Runmin Wang's avatar Runmin Wang
Browse files

sched/fair: load balance if a group is overloaded



Doing more aggressive balance if a sched_group is overloaded.

Change-Id: I00950c23c67a40b3431b68ac7ce2a1e470e563ed
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent dd5080ee
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9903,6 +9903,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);
	}