From: Dirk Behme Date: Mon, 9 May 2005 21:07:57 +0000 (-0700) Subject: ARM: Add function to get clock usecount X-Git-Tag: v2.6.13-omap1~177 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=463db2046cc48549f98d8e1f9da3aaf3a5cb6015;p=linux-2.6-omap-h63xx.git ARM: Add function to get clock usecount Adds function to get clock usecount. Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- diff --git a/include/asm-arm/hardware/clock.h b/include/asm-arm/hardware/clock.h index 19da861e523..609af9f8e6c 100644 --- a/include/asm-arm/hardware/clock.h +++ b/include/asm-arm/hardware/clock.h @@ -66,6 +66,12 @@ int clk_use(struct clk *clk); */ void clk_unuse(struct clk *clk); +/** + * clk_get_usecount - get the use count + * @clk: clock source + */ +int clk_get_usecount(struct clk *clk); + /** * clk_get_rate - obtain the current clock rate (in Hz) for a clock source. * This is only valid once the clock source has been enabled.