diff options
Diffstat (limited to 'include/asm-s390/pgalloc.h')
-rw-r--r-- | include/asm-s390/pgalloc.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/asm-s390/pgalloc.h b/include/asm-s390/pgalloc.h index e45d3c9a4b7e..6cbbfe4f6749 100644 --- a/include/asm-s390/pgalloc.h +++ b/include/asm-s390/pgalloc.h | |||
@@ -82,7 +82,6 @@ static inline void pgd_free(pgd_t *pgd) | |||
82 | */ | 82 | */ |
83 | #define pmd_alloc_one(mm,address) ({ BUG(); ((pmd_t *)2); }) | 83 | #define pmd_alloc_one(mm,address) ({ BUG(); ((pmd_t *)2); }) |
84 | #define pmd_free(x) do { } while (0) | 84 | #define pmd_free(x) do { } while (0) |
85 | #define __pmd_free_tlb(tlb,x) do { } while (0) | ||
86 | #define pgd_populate(mm, pmd, pte) BUG() | 85 | #define pgd_populate(mm, pmd, pte) BUG() |
87 | #define pgd_populate_kernel(mm, pmd, pte) BUG() | 86 | #define pgd_populate_kernel(mm, pmd, pte) BUG() |
88 | #else /* __s390x__ */ | 87 | #else /* __s390x__ */ |
@@ -118,12 +117,6 @@ static inline void pmd_free (pmd_t *pmd) | |||
118 | free_pages((unsigned long) pmd, PMD_ALLOC_ORDER); | 117 | free_pages((unsigned long) pmd, PMD_ALLOC_ORDER); |
119 | } | 118 | } |
120 | 119 | ||
121 | #define __pmd_free_tlb(tlb,pmd) \ | ||
122 | do { \ | ||
123 | tlb_flush_mmu(tlb, 0, 0); \ | ||
124 | pmd_free(pmd); \ | ||
125 | } while (0) | ||
126 | |||
127 | static inline void | 120 | static inline void |
128 | pgd_populate_kernel(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) | 121 | pgd_populate_kernel(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) |
129 | { | 122 | { |
@@ -224,14 +217,4 @@ static inline void pte_free(struct page *pte) | |||
224 | __free_page(pte); | 217 | __free_page(pte); |
225 | } | 218 | } |
226 | 219 | ||
227 | #define __pte_free_tlb(tlb, pte) \ | ||
228 | ({ \ | ||
229 | struct mmu_gather *__tlb = (tlb); \ | ||
230 | struct page *__pte = (pte); \ | ||
231 | struct page *shadow_page = get_shadow_page(__pte); \ | ||
232 | if (shadow_page) \ | ||
233 | tlb_remove_page(__tlb, shadow_page); \ | ||
234 | tlb_remove_page(__tlb, __pte); \ | ||
235 | }) | ||
236 | |||
237 | #endif /* _S390_PGALLOC_H */ | 220 | #endif /* _S390_PGALLOC_H */ |