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

Commit 9cbb63ce authored by Runmin Wang's avatar Runmin Wang
Browse files

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



Misfit task will get migrated in the tick path so there is no need
to do active pulling of the single task.

Change-Id: I372b23c038f4e34af4608859ba7a7d9ec9ca4283
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent dd5080ee
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10203,7 +10203,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) &&