]> 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)
commit81f2f54383e1ce61b1fef6f0e293f901cbd66f27
tree214b1413c1246e5c66d1c2c2df5aa6130d409847
parent87d0de375e957c48b86244c2308af84d9bac76d1
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