[PATCH] clk: clk_calc_new_rates() required for parent only if CLK_SET_RATE_PARENT is set

Viresh Kumar viresh.kumar at st.com
Wed Apr 11 02:47:47 EDT 2012


On 4/11/2012 12:13 PM, Sascha Hauer wrote:
> I see no functional change in this patch. With or without this patch we
> only call clk_calc_new_rates() when the parent rate actually changed.
> The code is easier to read with this patch and may be slightly more
> efficient, so:
> 
> Acked-by: Sascha Hauer <s.hauer at pengutronix.de>

Thanks Sascha. :)
Actually i am doing SPEAr clock stuff and i have to look at already
implemented clock source files. when i feel something can be rearranged
in a better way (atleast according to me :) ), i patch it.

They wouldn't be tested as i don't have SPEAr stuff ready. Will mention this
untested thing in patch next time.

You may see some more of these in coming time.

-- 
viresh



More information about the linux-arm-kernel mailing list