On 24-08-17, 00:10, Dong Aisheng wrote: > This is useful to support platforms which only the clk setting is > different from the generic OPP set rate but others like voltage > setting are still the same. > > Users can use this function to register a custom OPP set clk helper > working in place of the default simple clk setting in the generic > dev_pm_opp_set_rate(). Then user can still use dev_pm_opp_set_rate() > with .set_clk() to save a lot duplicated work.
I am not inclined to add this support really. What prevents you to register a clock for the device (which is CPU in your case) and the generic clk_set_rate() will eventually call into the platform specific routine. That's what everyone else is doing. -- viresh