aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/motorola_pgalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/include/asm/motorola_pgalloc.h')
-rw-r--r--arch/m68k/include/asm/motorola_pgalloc.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/motorola_pgalloc.h b/arch/m68k/include/asm/motorola_pgalloc.h
index d08bf6261df8..2f02f264e694 100644
--- a/arch/m68k/include/asm/motorola_pgalloc.h
+++ b/arch/m68k/include/asm/motorola_pgalloc.h
@@ -36,12 +36,10 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addres
36 return NULL; 36 return NULL;
37 37
38 pte = kmap(page); 38 pte = kmap(page);
39 if (pte) { 39 __flush_page_to_ram(pte);
40 __flush_page_to_ram(pte); 40 flush_tlb_kernel_page(pte);
41 flush_tlb_kernel_page(pte); 41 nocache_page(pte);
42 nocache_page(pte); 42 kunmap(page);
43 }
44 kunmap(pte);
45 pgtable_page_ctor(page); 43 pgtable_page_ctor(page);
46 return page; 44 return page;
47} 45}
@@ -54,7 +52,8 @@ static inline void pte_free(struct mm_struct *mm, pgtable_t page)
54 __free_page(page); 52 __free_page(page);
55} 53}
56 54
57static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t page) 55static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t page,
56 unsigned long address)
58{ 57{
59 pgtable_page_dtor(page); 58 pgtable_page_dtor(page);
60 cache_page(kmap(page)); 59 cache_page(kmap(page));
@@ -73,7 +72,8 @@ static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd)
73 return free_pointer_table(pmd); 72 return free_pointer_table(pmd);
74} 73}
75 74
76static inline int __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd) 75static inline int __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd,
76 unsigned long address)
77{ 77{
78 return free_pointer_table(pmd); 78 return free_pointer_table(pmd);
79} 79}