Skip to content

Commit

Permalink
ANDROID: sched: fair: balance for single core cluster
Browse files Browse the repository at this point in the history
Android will unset SD_LOAD_BALANCE for single core cluster domain and
for some product it is true to have a single core cluster and the MC
domain thus lacks the SD_LOAD_BALANCE flag. This will cause
select_task_rq_fair logic break and the task will spin forever
in that core.

Fixes: 00bbe7d605a9 "ANDROID: sched: EAS & 'single cpu per cluster'/cpu hotplug interoperability"

Bug: 141334320
Test: boot and see task on core7 scheduled correctly
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I08917836d8b99116353bfec5791af69d916583fe
  • Loading branch information
weivincewang authored and EndCredits committed May 14, 2023
1 parent 7098889 commit c59a303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -7449,7 +7449,7 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
rcu_read_lock();
for_each_domain(cpu, tmp) {
if (!(tmp->flags & SD_LOAD_BALANCE))
break;
continue;

/*
* If both 'cpu' and 'prev_cpu' are part of this domain,
Expand Down

0 comments on commit c59a303

Please sign in to comment.