Patch is less conservative in load balance target switch decision.
The workload is more spreaded and there is no idle cpu when
system is fully loaded.
Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
cpu_util(env->src_cpu) / 2);
int ret;
- if ((capacity_of(env->src_cpu) < capacity_of(env->dst_cpu)) &&
- env->src_rq->cfs.h_nr_running == 1 &&
- cpu_overutilized(env->src_cpu) &&
- !cpu_overutilized(env->dst_cpu) &&
- (fits_in || check_cpu_lite_util(env->dst_cpu))) {
+ if (fits_in || check_cpu_lite_util(env->dst_cpu)) {
ret = 1;
} else {
ret = 0;