PM / devfreq: passive: Fix get_target_freq when not using required-opp
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 17 Jun 2021 06:05:43 +0000 (15:05 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 24 Jun 2021 01:37:35 +0000 (10:37 +0900)
commit8c37d01e1a86073d15ea7084390fba58d9a1665f
tree5b790df8995378426dbf3d9ca94e8cf871f5b7e2
parent6b61f55ecbe693d9d0d7ae14ebce01dabe10ecf1
PM / devfreq: passive: Fix get_target_freq when not using required-opp

The 86ad9a24f21e ("PM / devfreq: Add required OPPs support to passive governor")
supported the required-opp property for using devfreq passive governor.
But, 86ad9a24f21e has caused the problem on use-case when required-opp
is not used such as exynos-bus.c devfreq driver. So that fix the
get_target_freq of passive governor for supporting the case of when
required-opp is not used.

Fixes: 86ad9a24f21e ("PM / devfreq: Add required OPPs support to passive governor")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/governor_passive.c