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

Commit 3ed889b3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: set LBF_IGNORE_PREFERRED_CLUSTER_TASKS correctly"

parents 564fc4f0 827a31c6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -7940,10 +7940,11 @@ static int detach_tasks(struct lb_env *env)
	if (env->imbalance <= 0)
		return 0;

	if (!same_cluster(env->dst_cpu, env->src_cpu))
		env->flags |= LBF_IGNORE_PREFERRED_CLUSTER_TASKS;

	if (cpu_capacity(env->dst_cpu) < cpu_capacity(env->src_cpu))
		env->flags |= LBF_IGNORE_BIG_TASKS;
	else if (!same_cluster(env->dst_cpu, env->src_cpu))
		env->flags |= LBF_IGNORE_PREFERRED_CLUSTER_TASKS;

redo:
	while (!list_empty(tasks)) {