sh: Fix up PMB locking.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 13 Oct 2010 18:49:15 +0000 (03:49 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 13 Oct 2010 18:49:15 +0000 (03:49 +0900)
This first converts the PMB locking over to raw spinlocks, and secondly
fixes up a nested locking issue that was triggering lockdep early on:

 swapper/0 is trying to acquire lock:
  (&pmbe->lock){......}, at: [<806be9bc>] pmb_init+0xf4/0x4dc

 but task is already holding lock:
  (&pmbe->lock){......}, at: [<806be98e>] pmb_init+0xc6/0x4dc

 other info that might help us debug this:
 1 lock held by swapper/0:
  #0:  (&pmbe->lock){......}, at: [<806be98e>] pmb_init+0xc6/0x4dc

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

No differences found