PM / Domains: Add genpd_opp_to_performance_state()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 13 Jun 2018 14:52:04 +0000 (20:22 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 5 Nov 2018 02:10:43 +0000 (07:40 +0530)
commite38f89d310fcc543b0b94594a92db1d6cfbd9376
tree1768f78fc7800d969e9740785674d093c018ccaf
parentda544b61eb5541db8827af0beab618daead88a34
PM / Domains: Add genpd_opp_to_performance_state()

The OPP core currently stores the performance state in the consumer
device's OPP table, but that is going to change going forward and
performance state will rather be set directly in the genpd's OPP table.

For that we need to get the performance state for genpd's device
structure (genpd->dev) instead of the consumer device's structure. Add a
new helper to do that.

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