diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-21 09:06:37 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 16:46:07 -0500 |
commit | c3391e36d697c997b6afeb045071e0be95219a3e (patch) | |
tree | 8bd9c12dd364519347473277496da3f3f1a54c9c /arch/arm/plat-s3c24xx/include | |
parent | 305554768011707f33f437b96f999f812ba2a7e4 (diff) |
[ARM] S3C24XX: Change clock locking to use spinlocks.
We cannot sleep if we have cpufreq pm enabled during some
of the clock operations, so change to use a spinlock to
protect the clock system.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx/include')
-rw-r--r-- | arch/arm/plat-s3c24xx/include/plat/clock.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/include/plat/clock.h b/arch/arm/plat-s3c24xx/include/plat/clock.h index 235b753cd877..88a00c35b685 100644 --- a/arch/arm/plat-s3c24xx/include/plat/clock.h +++ b/arch/arm/plat-s3c24xx/include/plat/clock.h | |||
@@ -10,6 +10,8 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/spinlock.h> | ||
14 | |||
13 | struct clk { | 15 | struct clk { |
14 | struct list_head list; | 16 | struct list_head list; |
15 | struct module *owner; | 17 | struct module *owner; |
@@ -51,7 +53,7 @@ extern struct clk clk_xtal; | |||
51 | * Please DO NOT use these outside of arch/arm/mach-s3c2410 | 53 | * Please DO NOT use these outside of arch/arm/mach-s3c2410 |
52 | */ | 54 | */ |
53 | 55 | ||
54 | extern struct mutex clocks_mutex; | 56 | extern spinlock_t clocks_lock; |
55 | 57 | ||
56 | extern int s3c2410_clkcon_enable(struct clk *clk, int enable); | 58 | extern int s3c2410_clkcon_enable(struct clk *clk, int enable); |
57 | 59 | ||