Commit-ID: a062d16449c0d2e00d5a54123c9cfadea3f6c763 Gitweb: https://git.kernel.org/tip/a062d16449c0d2e00d5a54123c9cfadea3f6c763 Author: Vincent Guittot <vincent.guittot@xxxxxxxxxx> AuthorDate: Fri, 14 Dec 2018 17:01:56 +0100 Committer: Ingo Molnar <mingo@xxxxxxxxxx> CommitDate: Sun, 27 Jan 2019 12:29:37 +0100 sched/fair: Trigger asym_packing during idle load balance 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@xxxxxxxxxx> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: valentin.schneider@xxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx> --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 3b61e19b504a..9693cf2ea954 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -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