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)
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>

No differences found