[PATCH RFC] clk: use spinlock for clk_get_rate

Shawn Guo shawn.guo at linaro.org
Thu Sep 6 11:31:06 EDT 2012


On Thu, Sep 06, 2012 at 11:28:10AM +0200, Ulf Hansson wrote:
> Hi Shawn,
> 
> Interesting problem you found. :-)
> 
> Just a note, that in my suggested patch: "[PATCH 1/4] clk: Provide
> option for clk_get_rate to issue hw for new rate",
> the prepare mutex will be required to keep.
> 
Right.  Just realized that the prepare mutex is also being used to
protect clock tree topology in clk_get_rate, so it's required anyway.
We may need to look for a fixing in smp_twd driver.

> Not sure if that should be considered as a part of the solution to the
> cpufreq problem, but anyway, thought you should know.
> 

-- 
Regards,
Shawn



More information about the linux-arm-kernel mailing list