linux/drivers/thermal
Viresh Kumar 349d39dc57 thermal: cpu_cooling: merge frequency and power tables
The cpu_cooling driver keeps two tables:

- freq_table: table of frequencies in descending order, built from
  policy->freq_table.

- power_table: table of frequencies and power in ascending order, built
  from OPP table.

If the OPPs are used for the CPU device then both these tables are
actually built using the OPP core and should have the same frequency
entries. And there is no need to keep separate tables for this.

Lets merge them both.

Note that the new table is in descending order of frequencies and so the
'for' loops were required to be fixed at few places to make it work.

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:44 -07:00
..
broadcom thermal: bcm2835: move to the broadcom subdirectory 2017-04-23 08:55:37 -07:00
int340x_thermal
qcom
samsung thermal: exynos: Remove parsing unused samsung,tmu_cal_mode property 2017-02-18 17:22:27 -08:00
st
tegra
ti-soc-thermal thermal: cpu_cooling: use cpufreq_policy to register cooling device 2017-05-27 17:32:24 -07:00
armada_thermal.c
clock_cooling.c thermal: convert clock cooling to use an IDA 2017-01-04 12:47:28 +08:00
cpu_cooling.c thermal: cpu_cooling: merge frequency and power tables 2017-05-27 17:32:44 -07:00
da9062-thermal.c thermal: da9062/61: Thermal junction temperature monitoring driver 2017-04-06 21:48:03 -07:00
db8500_thermal.c
devfreq_cooling.c trace: thermal: add another parameter 'power' to the tracing function 2017-05-05 15:54:45 +08:00
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c thermal: cpu_cooling: use cpufreq_policy to register cooling device 2017-05-27 17:32:24 -07:00
intel_bxt_pmic_thermal.c
intel_pch_thermal.c
intel_powerclamp.c sched/headers: Prepare for new header dependencies before moving code to <uapi/linux/sched/types.h> 2017-03-02 08:42:27 +01:00
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c Thermal: Intel SoC DTS: Change interrupt request behavior 2017-05-05 16:00:10 +08:00
Kconfig Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2017-05-12 11:58:45 -07:00
kirkwood_thermal.c
Makefile Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2017-05-12 11:58:45 -07:00
max77620_thermal.c
mtk_thermal.c thermal: mt8173: minor mtk_thermal.c cleanups 2017-04-23 09:01:42 -07:00
of-thermal.c
power_allocator.c
qcom-spmi-temp-alarm.c
qoriq_thermal.c
rcar_gen3_thermal.c thermal: rcar_gen3_thermal: add suspend and resume support 2017-03-30 21:49:03 -07:00
rcar_thermal.c
rockchip_thermal.c thermal: rockchip: fixes the conversion table 2017-01-16 20:30:49 -08:00
spear_thermal.c
step_wise.c
tango_thermal.c
thermal_core.c thermal: core: Add a back up thermal shutdown mechanism 2017-05-05 16:01:45 +08:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c Revert "thermal: thermal_hwmon: Convert to hwmon_device_register_with_info()" 2017-01-25 09:51:08 +08:00
thermal_hwmon.h
thermal_sysfs.c
thermal-generic-adc.c
user_space.c
x86_pkg_temp_thermal.c
zx2967_thermal.c thermal: zx2967: add thermal driver for ZTE's zx2967 family 2017-02-18 16:36:12 -08:00