]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: Introduce get_freq_range helper
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 31 Oct 2019 21:34:26 +0000 (23:34 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Dec 2019 03:19:16 +0000 (12:19 +0900)
commit71c16496c3e93e96f76c6cbaa731198716999435
tree638984de95cb91ef52aa033711a8451b8ef2e64b
parentd5d33fb42b822b5de3e3288257ec456d2d6c5f73
PM / devfreq: Introduce get_freq_range helper

Moving handling of min/max freq to a single function and call it from
update_devfreq and for printing min/max freq values in sysfs.

This changes the behavior of out-of-range min_freq/max_freq: clamping
is now done at evaluation time. This means that if an out-of-range
constraint is imposed by sysfs and it later becomes valid then it will
be enforced.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c