diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2017-10-23 03:32:08 +0200 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-10-26 10:08:40 +0200 |
commit | f1d981eaecf8ace68ec1d15bf05f28a4887ea6fb (patch) | |
tree | 0304a9e1ca1740a05b0bc36a06de56105a6950fb /lib/win_minmax.c | |
parent | Revert "PM / devfreq: Add show_one macro to delete the duplicate code" (diff) | |
download | linux-f1d981eaecf8ace68ec1d15bf05f28a4887ea6fb.tar.xz linux-f1d981eaecf8ace68ec1d15bf05f28a4887ea6fb.zip |
PM / devfreq: Use the available min/max frequency
The commit a76caf55e5b35 ("thermal: Add devfreq cooling") is able
to disable OPP as a cooling device. In result, both update_devfreq()
and {min|max}_freq_show() have to consider the 'opp->available'
status of each OPP.
So, this patch adds the 'scaling_{min|max}_freq' to struct devfreq
in order to indicate the available mininum and maximum frequency
by adjusting OPP interface such as dev_pm_opp_{disable|enable}().
The 'scaling_{min|max}_freq' are used for on both update_devfreq()
and {min|max}_freq_show().
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'lib/win_minmax.c')
0 files changed, 0 insertions, 0 deletions