[PATCH 5/5] ARM: OMAP: remove unnecessary locking in clk_get_rate()

Kevin Hilman
2008-05-20T22:45:50Z

The locking in the get_rate() hook is unnecessary, and causes problems
when used with the -rt patch, since it may be called recursively.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
arch/arm/plat-omap/clock.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 714dbbf..3842540 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -134,15 +134,12 @@ EXPORT_SYMBOL(clk_get_usecount);

unsigned long clk_get_rate(struct clk *clk)
{
- unsigned long flags;
unsigned long ret = 0;

if (clk == NULL || IS_ERR(clk))
return 0;

- spin_lock_irqsave(&clockfw_lock, flags);
ret = clk->rate;
- spin_unlock_irqrestore(&clockfw_lock, flags);

return ret;
}
--
1.5.4.1.166.g6706d