Skip to content

Commit

Permalink
Revert "sched/fair: Let lower-priority CPUs do active balancing"
Browse files Browse the repository at this point in the history
This reverts commit 8a6c57e.
  • Loading branch information
xanmod committed Apr 26, 2023
1 parent f479cd8 commit 74f1ab6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -10148,14 +10148,9 @@ asym_active_balance(struct lb_env *env)
* ASYM_PACKING needs to force migrate tasks from busy but
* lower priority CPUs in order to pack all tasks in the
* highest priority CPUs.
*
* If the busy CPU has higher priority but is an SMT sibling
* in which other SMT siblings are also busy, a lower-priority
* CPU in a separate core can help.
*/
return env->idle != CPU_NOT_IDLE && (env->sd->flags & SD_ASYM_PACKING) &&
(sched_asym_prefer(env->dst_cpu, env->src_cpu) ||
!(env->sd->flags & SD_SHARE_CPUCAPACITY));
sched_asym_prefer(env->dst_cpu, env->src_cpu);
}

static inline bool
Expand Down

0 comments on commit 74f1ab6

Please sign in to comment.