On 30-11-18, 09:53, Ulf Hansson wrote: > On Mon, 26 Nov 2018 at 09:10, Viresh Kumar <viresh.ku...@linaro.org> wrote: > > > > We will need these going forward in hotpath, i.e. from within > > dev_pm_genpd_set_performance_state(). > > Well, as for patch2, please try to be a bit more descriptive of why > and what this patch does.
PM / Domains: Save OPP table pointer in genpd dev_pm_genpd_set_performance_state() will be required to call dev_pm_opp_xlate_performance_state() going forward to translate from performance state of a sub-domain to performance state of its master. And dev_pm_opp_xlate_performance_state() needs pointers to the OPP tables of both genpd and its master. Lets fetch and save them while the OPP tables are added. Fetching the OPP tables should never fail as we just added the OPP tables and so add a WARN_ON() for such a bug instead of full error paths. Signed-off-by: Viresh Kumar <viresh.ku...@linaro.org> Good enough ? -- viresh