sched: Fix load balancing performance regression in should_we_balance()
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / sched / fair.c
index 7f0a5e6..9b3fe1c 100644 (file)
@@ -5151,7 +5151,7 @@ static int should_we_balance(struct lb_env *env)
         * First idle cpu or the first cpu(busiest) in this sched group
         * is eligible for doing load balancing at this and above domains.
         */
-       return balance_cpu != env->dst_cpu;
+       return balance_cpu == env->dst_cpu;
 }
 
 /*