diff options
| author | Chanwoo Choi <[email protected]> | 2017-10-23 01:32:08 +0000 |
|---|---|---|
| committer | MyungJoo Ham <[email protected]> | 2017-10-26 08:08:40 +0000 |
| commit | f1d981eaecf8ace68ec1d15bf05f28a4887ea6fb (patch) | |
| tree | 0304a9e1ca1740a05b0bc36a06de56105a6950fb /lib/mpi/mpi-internal.h | |
| parent | Revert "PM / devfreq: Add show_one macro to delete the duplicate code" (diff) | |
| download | kernel-f1d981eaecf8ace68ec1d15bf05f28a4887ea6fb.tar.gz kernel-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 <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions
