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)
commit4fa82a87ba55f5eca7d194055572110652daa264
tree755993e853f88f35ac154d71149ba380b3c3547a
parentac9fd3c8034011cc10a4c161b70a5837d95203f6
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