From 463db2046cc48549f98d8e1f9da3aaf3a5cb6015 Mon Sep 17 00:00:00 2001 From: Dirk Behme Date: Mon, 9 May 2005 14:07:57 -0700 Subject: [PATCH] ARM: Add function to get clock usecount Adds function to get clock usecount. Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- include/asm-arm/hardware/clock.h | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.41.1