diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-02-17 07:17:02 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-17 07:17:02 -0500 |
commit | d53a0d33bc3a50ea0e8dd1680a2e8435770b162a (patch) | |
tree | 7f7959c3aab789afe77d16616ba1246edf0b305a /arch/sh/include/asm/mmu.h | |
parent | 0065b96775f1eff167a2c3343a41582e8fab4c6c (diff) |
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>
Diffstat (limited to 'arch/sh/include/asm/mmu.h')
-rw-r--r-- | arch/sh/include/asm/mmu.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/sh/include/asm/mmu.h b/arch/sh/include/asm/mmu.h index 5453169bf052..e42c4e2a41df 100644 --- a/arch/sh/include/asm/mmu.h +++ b/arch/sh/include/asm/mmu.h | |||
@@ -53,24 +53,6 @@ typedef struct { | |||
53 | #endif | 53 | #endif |
54 | } mm_context_t; | 54 | } mm_context_t; |
55 | 55 | ||
56 | struct pmb_entry; | ||
57 | |||
58 | struct pmb_entry { | ||
59 | unsigned long vpn; | ||
60 | unsigned long ppn; | ||
61 | unsigned long flags; | ||
62 | unsigned long size; | ||
63 | |||
64 | /* | ||
65 | * 0 .. NR_PMB_ENTRIES for specific entry selection, or | ||
66 | * PMB_NO_ENTRY to search for a free one | ||
67 | */ | ||
68 | int entry; | ||
69 | |||
70 | /* Adjacent entry link for contiguous multi-entry mappings */ | ||
71 | struct pmb_entry *link; | ||
72 | }; | ||
73 | |||
74 | #ifdef CONFIG_PMB | 56 | #ifdef CONFIG_PMB |
75 | /* arch/sh/mm/pmb.c */ | 57 | /* arch/sh/mm/pmb.c */ |
76 | long pmb_remap(unsigned long virt, unsigned long phys, | 58 | long pmb_remap(unsigned long virt, unsigned long phys, |