]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OMAP2+: clockdomain: Add per clkdm lock to prevent concurrent state programming
authorRajendra Nayak <rnayak@ti.com>
Sun, 10 Jul 2011 11:56:55 +0000 (05:56 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 11:56:55 +0000 (05:56 -0600)
commit555e74ea08bfc04a0136f976cbaa200addf1ba87
treeafac050a2669fcf1e47d764785f9007c568b9e15
parentb86cfb52a145d8ddad66b98c39c6764f3883cd5a
OMAP2+: clockdomain: Add per clkdm lock to prevent concurrent state programming

Since the clkdm state programming is now done from within the hwmod
framework (which uses a per-hwmod lock) instead of the being done
from the clock framework (which used a global lock), there is now a
need to have per-clkdm locking to prevent races between different
hwmods/modules belonging to the same clock domain concurrently
programming the clkdm state.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clockdomain.c
arch/arm/mach-omap2/clockdomain.h
arch/arm/mach-omap2/clockdomain2xxx_3xxx.c
arch/arm/mach-omap2/clockdomain44xx.c