aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock34xx.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-11-13 08:44:15 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 12:50:11 -0500
commit9a5fedac187f30116013a8420149d4ca11a44f0d (patch)
tree3cdcd9e8887a6fa41d1ddd85eb8c759990adc27b /arch/arm/mach-omap2/clock34xx.c
parenta9e882096317a088087b608d272da7029a6cc8c8 (diff)
[ARM] omap: move propagate_rate() calls into generic omap clock code
propagate_rate() is recursive, so it makes sense to minimise the amount of stack which is used for each recursion. So, rather than recursing back into it from the ->recalc functions if RATE_PROPAGATES is set, do that test at the higher level. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock34xx.c')
-rw-r--r--arch/arm/mach-omap2/clock34xx.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c
index 2f2d43db2dd8..52698fb4fd04 100644
--- a/arch/arm/mach-omap2/clock34xx.c
+++ b/arch/arm/mach-omap2/clock34xx.c
@@ -57,8 +57,6 @@ static const struct clkops clkops_noncore_dpll_ops;
57static void omap3_dpll_recalc(struct clk *clk) 57static void omap3_dpll_recalc(struct clk *clk)
58{ 58{
59 clk->rate = omap2_get_dpll_rate(clk); 59 clk->rate = omap2_get_dpll_rate(clk);
60
61 propagate_rate(clk);
62} 60}
63 61
64/* _omap3_dpll_write_clken - write clken_bits arg to a DPLL's enable bits */ 62/* _omap3_dpll_write_clken - write clken_bits arg to a DPLL's enable bits */
@@ -388,9 +386,6 @@ static void omap3_clkoutx2_recalc(struct clk *clk)
388 clk->rate = clk->parent->rate; 386 clk->rate = clk->parent->rate;
389 else 387 else
390 clk->rate = clk->parent->rate * 2; 388 clk->rate = clk->parent->rate * 2;
391
392 if (clk->flags & RATE_PROPAGATES)
393 propagate_rate(clk);
394} 389}
395 390
396/* Common clock code */ 391/* Common clock code */