]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: Show the all available frequencies
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 23 Oct 2017 01:32:10 +0000 (10:32 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 26 Oct 2017 08:08:40 +0000 (17:08 +0900)
commit258a57839eaddd19097538f87379f84d71ea3b1f
treeafe1701ce9bc7b57af453c924e450fbc84acf23b
parent7f4c375e3e72d5f0ac3795f9451cc002e330b891
PM / devfreq: Show the all available frequencies

The commit ec84cb89592b0 ("thermal: Add devfreq cooling") allows
the devfreq device to use the cooling device. When the cooling down
are required, the devfreq_cooling.c disables the OPP entry with
the dev_pm_opp_disable(). In result, 'available_frequencies'[1]
sysfs node never came to show the all available frequencies.
[1] /sys/class/devfreq/.../available_frequencies

So, this patch uses the 'freq_table' in the 'struct devfreq_dev_profile'
in order to show the all available frequencies.
- If 'freq_table' is NULL, devfreq core initializes them by using OPP values.
- If 'freq_table' is initialized, devfreq core just uses the 'freq_table'.

And this patch adds some comment about the sort way of 'freq_table'.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h