]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ARM: OMAP2+: powerdomain/clockdomain: add a per-powerdomain spinlock
authorPaul Walmsley <paul@pwsan.com>
Sat, 26 Jan 2013 07:58:16 +0000 (00:58 -0700)
committerPaul Walmsley <paul@pwsan.com>
Tue, 29 Jan 2013 21:59:57 +0000 (14:59 -0700)
commit3a090284056954f382612da42ebe9f3147403ef5
tree6e9627679444b04614577cf55ad77f8e17aed0b9
parentc4978fba6b2d4e3a584d72c067a371871fecbedc
ARM: OMAP2+: powerdomain/clockdomain: add a per-powerdomain spinlock

Add a per-powerdomain spinlock.  Use that instead of the clockdomain
spinlock.  Add pwrdm_lock()/pwrdm_unlock() functions to allow other
code to acquire or release the powerdomain spinlock without reaching
directly into the struct powerdomain.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Jean Pihet <jean.pihet@newoldbits.com>
arch/arm/mach-omap2/clockdomain.c
arch/arm/mach-omap2/clockdomain.h
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/powerdomain.h