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)
commitf7fcec93b619337feb9da829b8a9ab6ba86393bc
tree3598a9c02d14252150ee9b8c1cc7988dd4636f19
parent47da88f36639b8de57f6cdd680f8c27528ccd67c
sh: Fix up PMB locking.

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>
arch/sh/mm/pmb.c