]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit1d34f075eff3aa4b23dd0f1653e85fc8bef9149f
tree2698cdc04f710d80da77ed36f6e3aad6d5e9fa57
parent9c3db58bcfe35b7b4435e231a95f736605af6269
[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