linux/drivers/thermal
Viresh Kumar f8bfc116ca cpufreq: Remove cpufreq_frequency_get_table()
Most of the callers of cpufreq_frequency_get_table() already have the
pointer to a valid 'policy' structure and they don't really need to go
through the per-cpu variable first and then a check to validate the
frequency, in order to find the freq-table for the policy.

Directly use the policy->freq_table field instead for them.

Only one user of that API is left after above changes, cpu_cooling.c and
it accesses the freq_table in a racy way as the policy can get freed in
between.

Fix it by using cpufreq_cpu_get() properly.

Since there are no more users of cpufreq_frequency_get_table() left, get
rid of it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Javi Merino <javi.merino@arm.com> (cpu_cooling.c)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-06-09 00:58:05 +02:00
..
int340x_thermal Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2016-05-26 09:23:43 -07:00
samsung thermal: exynos: Defer probe if vtmu is present but not registered 2016-03-08 14:22:25 -08:00
st Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2015-09-11 16:13:47 -07:00
tegra thermal: tegra: add Tegra132 specific SOC_THERM driver 2016-05-17 07:28:31 -07:00
ti-soc-thermal thermal: convert ti-thermal to use devm_thermal_zone_of_sensor_register 2016-05-17 07:28:27 -07:00
armada_thermal.c thermal: armada: Fix possible overflow in the Armada 380 thermal sensor formula 2015-10-30 11:33:23 -07:00
clock_cooling.c thermal: introduce clock cooling device 2014-11-20 10:43:16 -04:00
cpu_cooling.c cpufreq: Remove cpufreq_frequency_get_table() 2016-06-09 00:58:05 +02:00
db8500_cpufreq_cooling.c thermal: db8500_cpufreq_cooling: Fix module autoload for OF platform driver 2015-09-13 20:26:19 -07:00
db8500_thermal.c thermal: consistently use int for temperatures 2015-08-03 23:15:50 +08:00
devfreq_cooling.c devfreq_cooling: return on allocation failure 2015-11-04 11:06:29 -08:00
dove_thermal.c thermal: consistently use int for temperatures 2015-08-03 23:15:50 +08:00
fair_share.c thermal: consistently use int for temperatures 2015-08-03 23:15:50 +08:00
gov_bang_bang.c thermal: check validity get_trip_hyst function pointer in bang-bang governor 2016-05-16 13:21:11 +08:00
hisi_thermal.c thermal: hisilicon: fix IRQ imbalance enabling 2016-05-17 07:28:30 -07:00
imx_thermal.c imx: thermal: use CPU temperature grade info for thresholds 2015-11-23 16:38:40 -08:00
intel_pch_thermal.c thermal: intel_pch_thermal: Enable Skylake PCH thermal 2016-03-15 07:51:17 +08:00
intel_powerclamp.c thermal/powerclamp: remove cpu whitelist 2016-05-08 00:07:38 +08:00
intel_quark_dts_thermal.c x86/platform/iosf_mbi: Remove duplicate definitions 2015-12-09 01:18:34 +01:00
intel_soc_dts_iosf.c x86/platform/iosf_mbi: Remove duplicate definitions 2015-12-09 01:18:34 +01:00
intel_soc_dts_iosf.h Thermal: Intel SoC: DTS thermal IOSF core 2015-05-01 11:20:42 +08:00
intel_soc_dts_thermal.c Thermal: Intel SoC: DTS thermal use common APIs 2015-05-01 11:20:42 +08:00
Kconfig Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2016-05-26 09:23:43 -07:00
kirkwood_thermal.c thermal: consistently use int for temperatures 2015-08-03 23:15:50 +08:00
Makefile thermal: generic-adc: Add ADC based thermal sensor driver 2016-05-17 07:28:31 -07:00
mtk_thermal.c thermal: convert mtk_thermal to use devm_thermal_zone_of_sensor_register 2016-05-17 07:28:26 -07:00
of-thermal.c thermal: of-thermal: allow setting trip_temp on hardware 2016-05-17 07:28:28 -07:00
power_allocator.c thermal: power_allocator: req_range multiplication should be a 64 bit type 2016-04-20 16:22:45 -07:00
qcom-spmi-temp-alarm.c thermal: convert qcom-spmi to use devm_thermal_zone_of_sensor_register 2016-05-17 07:28:26 -07:00
rcar_thermal.c thermal: convert rcar_thermal to use devm_thermal_zone_of_sensor_register 2016-05-17 07:28:27 -07:00
rockchip_thermal.c thermal: rockchip: use the usleep_range instead of udelay 2016-05-17 07:28:33 -07:00
spear_thermal.c thermal: spear: use __maybe_unused for PM functions 2016-02-09 14:12:08 -08:00
step_wise.c Thermal: initialize thermal zone device correctly 2015-12-29 15:59:44 +08:00
tango_thermal.c thermal: tango: initialize TEMPSI_CFG 2016-05-17 07:28:33 -07:00
thermal_core.c thermal: use %d to print S32 parameters 2016-04-27 15:54:51 -07:00
thermal_core.h Thermal: initialize thermal zone device correctly 2015-12-29 15:59:44 +08:00
thermal_hwmon.c thermal: consistently use int for temperatures 2015-08-03 23:15:50 +08:00
thermal_hwmon.h thermal: hwmon: move hwmon support to single file 2013-09-03 09:09:12 -04:00
thermal-generic-adc.c thermal: generic-adc: Add ADC based thermal sensor driver 2016-05-17 07:28:31 -07:00
user_space.c Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00
x86_pkg_temp_thermal.c thermal: x86_pkg_temp: Handle the FROZEN hot plug notifier actions. 2016-05-17 09:59:29 +08:00