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

This commit is contained in:
qctecmdr Service 2018-04-27 19:49:48 -07:00 committed by Gerrit - the friendly Code Review server
commit fb91968bbd

View File

@ -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) &&