summaryrefslogtreecommitdiff
path: root/include/linux/cpu_cooling.h
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2013-02-08 13:09:32 +0800
committerZhang Rui <rui.zhang@intel.com>2013-03-26 14:33:43 +0800
commitfc35b35cbe24ef021ea9acfba21e54da958df747 (patch)
tree9bac0a697808c5e7c830bd551808729093a743c8 /include/linux/cpu_cooling.h
parent3912a677f68f6084e0a7b6a1a29310ac1b083713 (diff)
downloadlwn-fc35b35cbe24ef021ea9acfba21e54da958df747.tar.gz
lwn-fc35b35cbe24ef021ea9acfba21e54da958df747.zip
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>
Diffstat (limited to 'include/linux/cpu_cooling.h')
0 files changed, 0 insertions, 0 deletions