From ee6e5a5e8ceabcd788af823f92e4f5f439eaa146 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Fri, 3 Jul 2009 08:44:49 -0500 Subject: [PATCH] ARM: OMAP: remove unnecessary locking in clk_get_rate() commit 59ad0ff1902a22474867150a6a45d4eeda88512b in tip. 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 Signed-off-by: Thomas Gleixner Signed-off-by: Paul Gortmaker --- 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 5261a09..0af5402 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c @@ -78,15 +78,12 @@ EXPORT_SYMBOL(clk_disable); 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.7.0.4