sh: PMB locking overhaul.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 12:17:02 +0000 (21:17 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 12:17:02 +0000 (21:17 +0900)
commitd53a0d33bc3a50ea0e8dd1680a2e8435770b162a
tree7f7959c3aab789afe77d16616ba1246edf0b305a
parent0065b96775f1eff167a2c3343a41582e8fab4c6c
sh: PMB locking overhaul.

This implements some locking for the PMB code. A high level rwlock is
added for dealing with rw accesses on the entry map while a per-entry
data structure spinlock is added to deal with the PMB entry changing out
from underneath us.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/mmu.h
arch/sh/mm/pmb.c