]> git.baikalelectronics.ru Git - kernel.git/commit
OPP: Rename and relocate of_genpd_opp_to_performance_state()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 27 Jun 2018 10:59:50 +0000 (16:29 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 5 Nov 2018 02:10:43 +0000 (07:40 +0530)
commitc4c9cb87242fb9c4af5686cfd86cf3b0d711d671
tree214b1413c1246e5c66d1c2c2df5aa6130d409847
parent5079e445d6ef37895200ac7b16f34145800b0c42
OPP: Rename and relocate of_genpd_opp_to_performance_state()

The OPP core already has the performance state values for each of the
genpd's OPPs and there is no need to call the genpd callback again to
get the performance state for the case where the end device doesn't have
an OPP table and has the "required-opps" property directly in its node.

This commit renames of_genpd_opp_to_performance_state() as
of_get_required_opp_performance_state() and moves it to the OPP core, as
it is all about OPP stuff now.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/base/power/domain.c
drivers/opp/of.c
include/linux/pm_domain.h
include/linux/pm_opp.h