On 12-01-16, 16:49, Stephen Boyd wrote:
Having a single mutex around the clock and voltage setting makes cpu frequency switching scalability drop to zero for devices that have independent clock and voltage supplies for each CPU. We need to get the voltage and frequency settings under rcu and then release rcu and change the hardware. This is already how cpufreq-dt is doing it anyway, so I'm lost how it can't be copied here into OPP framework.
Hmm. So what should we do about the clk/regulator issue I mentioned in the other thread? How do we guarantee that the OPP doesn't get freed?
Should we implement a get/put regulator and clk within the OPP layer using some sort of refcount ?