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:
Ram Chandrasekar <rkumbako@codeaurora.org>
Loading
Please register or sign in to comment