# Re: \[PATCH v8 01/34\] opp: Add dev\_pm\_opp\_sync() helper

- From: Viresh Kumar \<viresh.kumar@linaro.org\>
- Date: 2021-08-26 02:54:35 
- List: linux-pm
- Page: https://ratatoskr.run/linux-pm/2021/08/1489269
- Thread: https://ratatoskr.run/linux-tegra/2021/08/1479846/t/2.md

```text
On 25-08-21, 18:41, Dmitry Osipenko wrote:
> Thinking a bit more about this, I got a nicer variant which actually works in all cases for Tegra.
> 
> Viresh / Ulf, what do you think about this:

This is what I have been suggesting from day 1 :)

https://lore.kernel.org/linux-staging/20210818055849.ybfajzu75ecpdrbn@vireshk-i7/

 "
  And if it is all about just syncing the genpd core, then can the
  genpd core do something like what clk framework does? i.e. allow a
  new optional genpd callback, get_performance_state() (just like
  set_performance_state()), which can be called initially by the core
  to get the performance to something other than zero.
 "

Looks good to me :)

-- 
viresh
```
