[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <13B9B4C6EF24D648824FF11BE8967162037AF5CFFF@dlee02.ent.ti.com>
Date: Tue, 24 Feb 2009 06:35:37 -0600
From: "Woodruff, Richard" <r-woodruff2@...com>
To: Russell King - ARM Linux <linux@....linux.org.uk>
CC: Paul Walmsley <paul@...an.com>,
"linux-arm-kernel@...ts.arm.linux.org.uk"
<linux-arm-kernel@...ts.arm.linux.org.uk>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-omap@...r.kernel.org" <linux-omap@...r.kernel.org>,
Tony Lindgren <tony@...mide.com>
Subject: RE: [PATCH E 11/14] OMAP clock: track child clocks
> From: Russell King - ARM Linux [mailto:linux@....linux.org.uk]
> Sent: Monday, February 23, 2009 10:04 AM
> To: Woodruff, Richard
> Ack?
Ack.
> diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
> index 08baa18..b2d9e1f 100644
> --- a/arch/arm/plat-omap/clock.c
> +++ b/arch/arm/plat-omap/clock.c
> @@ -144,12 +144,14 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
> return ret;
>
> spin_lock_irqsave(&clockfw_lock, flags);
> - if (arch_clock->clk_set_parent)
> - ret = arch_clock->clk_set_parent(clk, parent);
> - if (ret == 0) {
> - if (clk->recalc)
> - clk->rate = clk->recalc(clk);
> - propagate_rate(clk);
> + if (clk->usecount == 0) {
> + if (arch_clock->clk_set_parent)
> + ret = arch_clock->clk_set_parent(clk, parent);
> + if (ret == 0) {
> + if (clk->recalc)
> + clk->rate = clk->recalc(clk);
> + propagate_rate(clk);
> + }
> }
> spin_unlock_irqrestore(&clockfw_lock, flags);
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists