[ARM] 3303/1: S3C24XX - add clock enable usage counting
authorBen Dooks <ben-linux@fluff.org>
Wed, 8 Feb 2006 21:09:05 +0000 (21:09 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 8 Feb 2006 21:09:05 +0000 (21:09 +0000)
commit2a513ce79958d47b72a11c76ec291c8c1169214c
tree2698cdc04f710d80da77ed36f6e3aad6d5e9fa57
parentf8e5b28413a8bf0b421dd116b30ab2d3befec629
[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>
arch/arm/mach-s3c2410/clock.c
arch/arm/mach-s3c2410/clock.h