drivers: thermal: cpu_cooling: Use Policy cpu as cdev ID
CPU cooling driver uses the IDA index to name the CPU cooling device. This doesn't give the visibility of which cpufreq policy this particular cooling device is managing. Use the Policy CPU as the cooling device ID and this will have a one to one correlation to the cpufreq policy ID. Change-Id: I1ee0ac383328f4eb7e3f83e970d03af97aba9953 Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
This commit is contained in:
parent
3c2428cbdb
commit
5d5dcb35a4
@ -586,7 +586,7 @@ __cpufreq_cooling_register(struct device_node *np,
|
||||
cdev = ERR_PTR(ret);
|
||||
goto free_table;
|
||||
}
|
||||
cpufreq_cdev->id = ret;
|
||||
cpufreq_cdev->id = policy->cpu;
|
||||
|
||||
snprintf(dev_name, sizeof(dev_name), "thermal-cpufreq-%d",
|
||||
cpufreq_cdev->id);
|
||||
|
Loading…
Reference in New Issue
Block a user