aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/pgtable.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-07-28 11:12:17 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-07-28 11:12:17 -0400
commit9cef7492696a416663b4edb953a4eade8517ebeb (patch)
treee52b19208a2197a624a7942e6c549d274a944fb0 /arch/sh/include/asm/pgtable.h
parent0dfae7d5a21901b28ec0452d71be64adf5ea323e (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.h15
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
136struct vm_area_struct; 136struct vm_area_struct;
137extern void update_mmu_cache(struct vm_area_struct * vma, 137
138 unsigned long address, pte_t pte); 138extern void __update_cache(struct vm_area_struct *vma,
139 unsigned long address, pte_t pte);
140extern void __update_tlb(struct vm_area_struct *vma,
141 unsigned long address, pte_t pte);
142
143static inline void
144update_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
139extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; 150extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
140extern void paging_init(void); 151extern void paging_init(void);
141extern void page_table_range_init(unsigned long start, unsigned long end, 152extern void page_table_range_init(unsigned long start, unsigned long end,