summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/clock.h
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-02-08 22:09:05 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-02-08 22:09:05 +0100
commit2a513ce79958d47b72a11c76ec291c8c1169214c (patch)
tree2698cdc04f710d80da77ed36f6e3aad6d5e9fa57 /arch/arm/mach-s3c2410/clock.h
parent[ARM] 3302/1: make pci=firmware the default for ixp2000 (diff)
downloadlinux-2a513ce79958d47b72a11c76ec291c8c1169214c.tar.xz
linux-2a513ce79958d47b72a11c76ec291c8c1169214c.zip
[ARM] 3303/1: S3C24XX - add clock enable usage counting
Patch from Ben Dooks Move to using an enable count for the shared clocks and protect the clock system using a mutex instead of just disabling IRQs during the clock update. Since there is little more code in the path for non-shared clocks, the enable and disable calls use the same code for each. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/clock.h')
-rw-r--r--arch/arm/mach-s3c2410/clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/clock.h b/arch/arm/mach-s3c2410/clock.h
index 177d5c8decf7..eb5c95d1e7f2 100644
--- a/arch/arm/mach-s3c2410/clock.h
+++ b/arch/arm/mach-s3c2410/clock.h
@@ -16,6 +16,7 @@ struct clk {
struct clk *parent;
const char *name;
int id;
+ int usage;
unsigned long rate;
unsigned long ctrlbit;
int (*enable)(struct clk *, int enable);