linux/drivers/thermal
Zhang Rui fc35b35cbe Thermal: cpufreq cooling: fix parsing per_cpu cpufreq_frequency_table
cpufreq cooling uses different frequencies as different cooling states.

But the per_cpu cpufreq_frequency_table may contain duplicate,
invalid entries, and it may be in either ascending or descending order.
And currently, code for parsing the per_cpu cpufreq_frequency_table
is used in several places and inconsistent.

Now introduce new code to
1. get the maximum cooling states
2. translate cooling state to cpu frequency
3. translate cpu frequency to cooling state
in one place,
with the correct logic of handling per_cpu cpufreq_frequency_table.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Amit Daniel kachhap <amit.daniel@samsung.com>
2013-03-26 14:33:43 +08:00
..
cpu_cooling.c Thermal: cpufreq cooling: fix parsing per_cpu cpufreq_frequency_table 2013-03-26 14:33:43 +08:00
db8500_cpufreq_cooling.c thermal: db8500: Use of_match_ptr() macro in db8500_cpufreq_cooling.c 2013-01-04 15:40:03 +08:00
db8500_thermal.c thermal: db8500: Use of_match_ptr() macro in db8500_thermal.c 2013-01-04 15:39:32 +08:00
dove_thermal.c Thermal: dove: Convert to devm_ioremap_resource() 2013-03-11 23:09:02 +08:00
exynos_thermal.c thermal: exynos_thermal: return a proper error code while thermal_zone_device_register fail. 2013-03-11 23:09:29 +08:00
fair_share.c thermal: fair_share: Add missing static storage class specifiers 2012-11-05 14:00:10 +08:00
intel_powerclamp.c Fix mis-merge of intel_powerclamp.c resulting in compile error 2013-02-28 20:23:09 -08:00
Kconfig Thermal: rename thermal governor Kconfig option to avoid generic naming 2013-02-08 20:33:42 +08:00
kirkwood_thermal.c Thermal: kirkwood: Convert to devm_ioremap_resource() 2013-03-11 23:09:18 +08:00
Makefile Thermal: rename thermal governor Kconfig option to avoid generic naming 2013-02-08 20:33:42 +08:00
rcar_thermal.c thermal: rcar_thermal: propagate return value of thermal_zone_device_register 2013-03-11 23:09:24 +08:00
spear_thermal.c drivers/thermal/spear_thermal.c: use devm_clk_get 2013-01-04 15:38:25 +08:00
step_wise.c step_wise: Unify the code for both throttle and dethrottle 2013-01-04 15:22:37 +08:00
thermal_core.h Thermal: Move thermal_instance to thermal_core.h 2012-11-05 13:56:32 +08:00
thermal_sys.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2013-02-28 19:48:26 -08:00
user_space.c thermal: user_space: Add missing static storage class specifiers 2012-11-05 14:00:11 +08:00