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

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

Merge "sched/fair: do not pull single task if a dst_cpu is not idle"

parents 5e865040 9cbb63ce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10209,7 +10209,8 @@ static int need_active_balance(struct lb_env *env)
			return 1;
	}

	if ((capacity_of(env->src_cpu) < capacity_of(env->dst_cpu)) &&
	if ((env->idle != CPU_NOT_IDLE) &&
		(capacity_of(env->src_cpu) < capacity_of(env->dst_cpu)) &&
	    ((capacity_orig_of(env->src_cpu) < capacity_orig_of(env->dst_cpu))) &&
				env->src_rq->cfs.h_nr_running == 1 &&
				cpu_overutilized(env->src_cpu) &&