]> git.baikalelectronics.ru Git - kernel.git/commit
opp: Allow required-opps to be used for non genpd use cases
authorHsin-Yi Wang <hsinyi@chromium.org>
Wed, 16 Jun 2021 05:33:35 +0000 (13:33 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 18 Jun 2021 03:30:55 +0000 (09:00 +0530)
commit71b3d40450c56ef5244ac6a7b69f9038de48f095
tree755993e853f88f35ac154d71149ba380b3c3547a
parent0dc54402df08e918dd3190f7fb0376c119506fad
opp: Allow required-opps to be used for non genpd use cases

Don't limit required_opp_table to genpd only. One possible use case is
cpufreq based devfreq governor, which can use required-opps property to
derive devfreq from cpufreq.

Though the OPP core still doesn't support non-genpd required-opps in
_set_required_opps().

Suggested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
[ Viresh: Update _set_required_opps() to check for genpd ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/of.c