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

Commit 0b476170 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: Improve the scheduler"

parents 0b5bb25e aaf50297
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -9386,6 +9386,11 @@ group_is_overloaded(struct lb_env *env, struct sg_lb_stats *sgs)
	if (sgs->sum_nr_running <= sgs->group_weight)
	if (sgs->sum_nr_running <= sgs->group_weight)
		return false;
		return false;


#ifdef CONFIG_SCHED_WALT
	if (env->idle != CPU_NOT_IDLE && walt_rotation_enabled)
		return true;
#endif

	if ((sgs->group_capacity * 100) <
	if ((sgs->group_capacity * 100) <
			(sgs->group_util * env->sd->imbalance_pct))
			(sgs->group_util * env->sd->imbalance_pct))
		return true;
		return true;