]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: Add function to get clock usecount
authorDirk Behme <dirk.behme@de.bosch.com>
Mon, 9 May 2005 21:07:57 +0000 (14:07 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 9 May 2005 21:07:57 +0000 (14:07 -0700)
Adds function to get clock usecount.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
include/asm-arm/hardware/clock.h

index 19da861e523d8dbbfe327e4b07d166c61544a623..609af9f8e6c59cfc42e8cd3b80176e47b81bf93f 100644 (file)
@@ -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.