]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
sched/fair: Trigger asym_packing during idle load balance
authorVincent Guittot <vincent.guittot@linaro.org>
Fri, 14 Dec 2018 16:01:56 +0000 (17:01 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 27 Jan 2019 11:29:37 +0000 (12:29 +0100)
Newly idle load balancing is not always triggered when a CPU becomes idle.
This prevents the scheduler from getting a chance to migrate the task
for asym packing.

Enable active migration during idle load balance too.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: valentin.schneider@arm.com
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c

index 3b61e19b504a8acea8734304b792611e1708284d..9693cf2ea954203b08f9579c63ff4148237fa5f7 100644 (file)
@@ -8832,7 +8832,7 @@ static int need_active_balance(struct lb_env *env)
 {
        struct sched_domain *sd = env->sd;
 
-       if (env->idle == CPU_NEWLY_IDLE) {
+       if (env->idle != CPU_NOT_IDLE) {
 
                /*
                 * ASYM_PACKING needs to force migrate tasks from busy but