diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-07-28 11:12:17 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-28 11:12:17 -0400 |
commit | 9cef7492696a416663b4edb953a4eade8517ebeb (patch) | |
tree | e52b19208a2197a624a7942e6c549d274a944fb0 /arch/sh/include/asm/pgtable.h | |
parent | 0dfae7d5a21901b28ec0452d71be64adf5ea323e (diff) |
sh: update_mmu_cache() consolidation.
This splits out a separate __update_cache()/__update_tlb() for
update_mmu_cache() to wrap in to. This lets us share the common
__update_cache() bits while keeping special __update_tlb() handling
broken out.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/pgtable.h')
-rw-r--r-- | arch/sh/include/asm/pgtable.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h index ba2333216c5b..43ef3e99fdd1 100644 --- a/arch/sh/include/asm/pgtable.h +++ b/arch/sh/include/asm/pgtable.h | |||
@@ -134,8 +134,19 @@ typedef pte_t *pte_addr_t; | |||
134 | #define pgtable_cache_init() do { } while (0) | 134 | #define pgtable_cache_init() do { } while (0) |
135 | 135 | ||
136 | struct vm_area_struct; | 136 | struct vm_area_struct; |
137 | extern void update_mmu_cache(struct vm_area_struct * vma, | 137 | |
138 | unsigned long address, pte_t pte); | 138 | extern void __update_cache(struct vm_area_struct *vma, |
139 | unsigned long address, pte_t pte); | ||
140 | extern void __update_tlb(struct vm_area_struct *vma, | ||
141 | unsigned long address, pte_t pte); | ||
142 | |||
143 | static inline void | ||
144 | update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte) | ||
145 | { | ||
146 | __update_cache(vma, address, pte); | ||
147 | __update_tlb(vma, address, pte); | ||
148 | } | ||
149 | |||
139 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; | 150 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; |
140 | extern void paging_init(void); | 151 | extern void paging_init(void); |
141 | extern void page_table_range_init(unsigned long start, unsigned long end, | 152 | extern void page_table_range_init(unsigned long start, unsigned long end, |