linux_dsm_epyc7002/drivers/thermal/ti-soc-thermal
Viresh Kumar 4d753aa7b6 thermal: cpu_cooling: use cpufreq_policy to register cooling device
The CPU cooling driver uses the cpufreq policy, to get clip_cpus, the
frequency table, etc. Most of the callers of CPU cooling driver's
registration routines have the cpufreq policy with them, but they only
pass the policy->related_cpus cpumask. The __cpufreq_cooling_register()
routine then gets the policy by itself and uses it.

It would be much better if the callers can pass the policy instead
directly. This also fixes a basic design flaw, where the policy can be
freed while the CPU cooling driver is still active.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2017-05-27 17:32:24 -07:00
..
dra752-bandgap.h thermal: arm: dra752: Remove all TSHUT related definitions 2017-02-18 17:44:18 -08:00
dra752-thermal-data.c thermal: ti-soc-thermal: Remove redundant constants 2017-03-29 22:14:51 -07:00
Kconfig thermal: ti-soc-thermal: Remove CPU_THERMAL Dependency from TI_THERMAL 2017-02-18 17:43:56 -08:00
Makefile ti-soc-thermal: implement omap3 support 2015-09-29 14:08:24 -07:00
omap3-thermal-data.c thermal: ti-soc-thermal: Remove redundant constants 2017-03-29 22:14:51 -07:00
omap4-thermal-data.c thermal: ti-soc-thermal: Remove redundant constants 2017-03-29 22:14:51 -07:00
omap4xxx-bandgap.h thermal: introduce TI SoC thermal driver 2013-05-28 10:40:37 +08:00
omap5-thermal-data.c thermal: ti-soc-thermal: Remove redundant constants 2017-03-29 22:14:51 -07:00
omap5xxx-bandgap.h thermal: introduce TI SoC thermal driver 2013-05-28 10:40:37 +08:00
ti-bandgap.c thermal: ti-soc-thermal: add missing clk_put() 2016-11-23 10:07:35 +08:00
ti-bandgap.h thermal: ti-soc-thermal: Remove redundant constants 2017-03-29 22:14:51 -07:00
ti-thermal-common.c thermal: cpu_cooling: use cpufreq_policy to register cooling device 2017-05-27 17:32:24 -07:00
ti-thermal.h thermal: ti-soc-thermal: Remove redundant constants 2017-03-29 22:14:51 -07:00
TODO thermal: introduce TI SoC thermal driver 2013-05-28 10:40:37 +08:00