Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 27ea8add authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched/fair: start_cpu() fix for rtg_target case



It is possible that an offlined cpu be returned while adjusting the
start_cpu to the preferred cluster. The dereferencing of sched domain
via an offlined cpu will end up accessing stale pointers.

To fix it, check the preferred cpu mask against online mask. Moreover
since a cpu always fits its preferred cluster, move the check before
task_fits_max based ones.

Note that task_fits_max based start_cpu checks do not suffer from
returning an offline cpu because the {min/mid/max}_cap_orig_cpu are
updated in hotplug path such that they always point to an online cpu.

Change-Id: Ib3b03b5eac2c555a84e3e5719afce33e7be8abb2
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent d1aff798
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment