]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: Set scaling_max_freq to max on OPP notifier error
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 31 Oct 2019 21:34:19 +0000 (23:34 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Dec 2019 03:19:15 +0000 (12:19 +0900)
commitd5d33fb42b822b5de3e3288257ec456d2d6c5f73
tree4849c6d5da6cb21115a5e24c0bddfa218e40537a
parent7e637ea2401d81a537251762e370511923d641c7
PM / devfreq: Set scaling_max_freq to max on OPP notifier error

The devfreq_notifier_call functions will update scaling_min_freq and
scaling_max_freq when the OPP table is updated.

If fetching the maximum frequency fails then scaling_max_freq remains
set to zero which is confusing. Set to ULONG_MAX instead so we don't
need special handling for this case in other places.

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