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

Skip to content
Commit 4cdf9733 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

msm: thermal: Add support to get cluster topology info in KTM



Add support in KTM to get the topology information for a
device from the kernel topology module. The topology
information includes the cluster core mapping and
core sibling cpumask. From thermal device tree property,
KTM determines whether a cluster is synchronous i.e. running
cores at same frequency.

If the kernel topology module doesn't have the cluster
and core information, then KTM will try to get this mapping
information from the thermal device tree property.

KTM exposes this topology information along with the
synchronous cluster information through sysfs node
(/sys/module/msm_thermal/cluster_info). The information is
exposed in the below format,
<cluster_id>:<bitmap_of_cores_in_this_cluster>:
<is_synchronous_cluster>

For multi-cluster devices, the topology information for
different clusters are delimited by a space character.

Change-Id: I6f3c74a3c62f35e2f7c8b1dcde33f6e79cab8819
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 5795c30f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment