Re: [PATCH V2 9/9] cpufreq: scmi: Use .register_em() callback

From: Viresh Kumar
Date: Wed Aug 11 2021 - 23:53:25 EST


On 11-08-21, 14:17, Quentin Perret wrote:
> Also, we can probably afford calling dev_pm_opp_get_opp_count() from the
> em_register callback as it is not a hot path, which would avoid wasting
> some 'resident' memory here that is only used during init.

We also need to make sure that OPPs are available in init(), else we
fail. So, we can't really move that out.

--
viresh