From: 黄涛 Date: Tue, 21 Sep 2010 10:15:30 +0000 (+0800) Subject: clock: clk_get_rate不加锁 X-Git-Tag: firefly_0821_release~11119 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4e9c720fec4a737d143fd24e278b4a94a45f16a5;p=firefly-linux-kernel-4.4.55.git clock: clk_get_rate不加锁 --- diff --git a/arch/arm/mach-rk2818/clock.c b/arch/arm/mach-rk2818/clock.c index d4e482a4d025..59233f1e81f3 100644 --- a/arch/arm/mach-rk2818/clock.c +++ b/arch/arm/mach-rk2818/clock.c @@ -1304,16 +1304,10 @@ EXPORT_SYMBOL(clk_disable); unsigned long clk_get_rate(struct clk *clk) { - unsigned long ret; - if (clk == NULL || IS_ERR(clk)) return 0; - LOCK(); - ret = clk->rate; - UNLOCK(); - - return ret; + return clk->rate; } EXPORT_SYMBOL(clk_get_rate);