diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 43ee84f05d1ef318e1ae63967d53aa335bc324d8..a53a610095e63da814298114daf03e56631c19e7 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1415,8 +1415,9 @@ static bool numa_has_capacity(struct task_numa_env *env) * --------------------- vs --------------------- * src->compute_capacity dst->compute_capacity */ - if (src->load * dst->compute_capacity > - dst->load * src->compute_capacity) + if (src->load * dst->compute_capacity * env->imbalance_pct > + + dst->load * src->compute_capacity * 100) return true; return false;