]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PM / devfreq: Use the available min/max frequency
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 23 Oct 2017 01:32:08 +0000 (10:32 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 26 Oct 2017 08:08:40 +0000 (17:08 +0900)
commitf1d981eaecf8ace68ec1d15bf05f28a4887ea6fb
tree0304a9e1ca1740a05b0bc36a06de56105a6950fb
parent1051e2c304b5cf17d4117505985f8128c5c64fd9
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>
drivers/devfreq/devfreq.c
include/linux/devfreq.h