mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
fc35b35cbe
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> |
||
---|---|---|
.. | ||
cpu_cooling.c | ||
db8500_cpufreq_cooling.c | ||
db8500_thermal.c | ||
dove_thermal.c | ||
exynos_thermal.c | ||
fair_share.c | ||
intel_powerclamp.c | ||
Kconfig | ||
kirkwood_thermal.c | ||
Makefile | ||
rcar_thermal.c | ||
spear_thermal.c | ||
step_wise.c | ||
thermal_core.h | ||
thermal_sys.c | ||
user_space.c |