git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1010286
)
ARM: Add function to get clock usecount
author
Dirk Behme
<dirk.behme@de.bosch.com>
Mon, 9 May 2005 21:07:57 +0000
(14:07 -0700)
committer
Tony 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
patch
|
blob
|
history
diff --git
a/include/asm-arm/hardware/clock.h
b/include/asm-arm/hardware/clock.h
index
19da861
..
609af9f
100644
(file)
--- 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.