diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-05-08 08:23:29 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-08 17:46:22 +0900 |
commit | 4f5ecaa05493dfddf155b40224b951592bfce325 (patch) | |
tree | 8f37268849bc0fa6599e35e39cf01b01961ccb51 /arch/sh/include | |
parent | 7d170b1bc540a1d83098a9f27cf4939e026fda81 (diff) | |
download | op-kernel-dev-4f5ecaa05493dfddf155b40224b951592bfce325.zip op-kernel-dev-4f5ecaa05493dfddf155b40224b951592bfce325.tar.gz |
sh: clock framework update, fix count and kill off kref
This patch updates the clock framework use count code.
With this patch the enable() and disable() callbacks
only get called when counting from and to zero.
While at it the kref stuff gets replaced with an int.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/clock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h index 2f6c962..b1f2919 100644 --- a/arch/sh/include/asm/clock.h +++ b/arch/sh/include/asm/clock.h @@ -1,7 +1,6 @@ #ifndef __ASM_SH_CLOCK_H #define __ASM_SH_CLOCK_H -#include <linux/kref.h> #include <linux/list.h> #include <linux/seq_file.h> #include <linux/clk.h> @@ -28,7 +27,7 @@ struct clk { struct clk *parent; struct clk_ops *ops; - struct kref kref; + int usecount; unsigned long rate; unsigned long flags; @@ -37,6 +36,7 @@ struct clk { #define CLK_ALWAYS_ENABLED (1 << 0) #define CLK_RATE_PROPAGATES (1 << 1) +#define CLK_NEEDS_INIT (1 << 2) /* Should be defined by processor-specific code */ void arch_init_clk_ops(struct clk_ops **, int type); |