]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
clock34xx.c: fix spinlock reentry in omap3_noncore_dpll_enable()
authorPaul Walmsley <paul@pwsan.com>
Thu, 15 May 2008 20:48:20 +0000 (14:48 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 16 May 2008 17:49:49 +0000 (10:49 -0700)
omap3_noncore_dpll_enable() calls clk_get_rate(), which causes an attempt
to re-enter the clockfw_lock spinlock.  Fix by calling
omap2_get_dpll_rate() instead.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock34xx.c

index 670c945880c045926ba7d41fc5f9e81012e5dd0d..71357db3f8d389263306376dd1b85899778ede7e 100644 (file)
@@ -273,7 +273,7 @@ static int omap3_noncore_dpll_enable(struct clk *clk)
        if (clk == &dpll3_ck)
                return -EINVAL;
 
-       if (clk->parent->rate == clk_get_rate(clk))
+       if (clk->parent->rate == omap2_get_dpll_rate(clk))
                r = _omap3_noncore_dpll_bypass(clk);
        else
                r = _omap3_noncore_dpll_lock(clk);