diff options
Diffstat (limited to 'arch/x86/mm/pgtable.c')
-rw-r--r-- | arch/x86/mm/pgtable.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c index 83765328e265..1c41efedf6d0 100644 --- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c | |||
@@ -28,6 +28,14 @@ void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte) | |||
28 | tlb_remove_page(tlb, pte); | 28 | tlb_remove_page(tlb, pte); |
29 | } | 29 | } |
30 | 30 | ||
31 | #if PAGETABLE_LEVELS > 2 | ||
32 | void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd) | ||
33 | { | ||
34 | paravirt_release_pd(__pa(pmd) >> PAGE_SHIFT); | ||
35 | tlb_remove_page(tlb, virt_to_page(pmd)); | ||
36 | } | ||
37 | #endif /* PAGETABLE_LEVELS > 2 */ | ||
38 | |||
31 | #ifdef CONFIG_X86_64 | 39 | #ifdef CONFIG_X86_64 |
32 | static inline void pgd_list_add(pgd_t *pgd) | 40 | static inline void pgd_list_add(pgd_t *pgd) |
33 | { | 41 | { |