mach-omap2/powerdomain.c: convert rwsem to rwlock
authorPaul Walmsley <paul@pwsan.com>
Wed, 14 May 2008 18:16:46 +0000 (12:16 -0600)
committerTony Lindgren <tony@atomide.com>
Wed, 14 May 2008 22:24:39 +0000 (15:24 -0700)
commit65d548940ec279b469b1802e0e82694d1d3c7aaa
treebc3ac7042c28317b0ffe155bbe54b3a1d5180614
parenta59e04f09caf72992577775c89849a821f839858
mach-omap2/powerdomain.c: convert rwsem to rwlock

The generic rwsem implementation of down_read() and down_write() does not
save and restore interrupt state.  This causes powerdomain code to
inadvertently enable interrupts early in the boot process, causing
init/main.c to complain.   This patch converts powerdomain locking to
r-w spinlocks instead.

I'm also curious to know if this fixes the BeagleBoard boot problem.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/powerdomain.c