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

Skip to content
Commit d11f209b authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

arch_topology: Add possible sibling cpu mask for cpu_topology



Commit '5ec8b591("arm64: topology: restrict updating siblings_masks
to online cpus only")' update cpu_topology sibling mask with only online
cpus. This causes issues with walt's cluster initialization code which
assumes that cpu_coregroup_mask has all possible sibling cpus. In cases
when the system is booted with limited online cpus, using maxcpu parameter,
walt's cluster initialization code will incorrectly populate less number
of cpus than physically present and doesn't have an opportunity to
correct them later.

The issue can be fixed by populating sched_cluster cpus either with
actual device-tree provided cluster cpus or with cpufreq->related_cpus.
But it is possible that, cluster cpus and cpufreq related cpus could be
different, so use device-tree populated cluster cpus as scheduler
cluster cpus.

Add possible sibling cpu support for cpu_topology.

Change-Id: I317771e85cc03fb3998457a30dae48f4f72ca546
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent abc0e9e8
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