|
@@ -124,14 +124,14 @@ static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd)
|
|
}
|
|
}
|
|
|
|
|
|
static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud,
|
|
static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud,
|
|
- unsigned long address)
|
|
|
|
|
|
+ unsigned long address)
|
|
{
|
|
{
|
|
/*
|
|
/*
|
|
* By now all the pud entries should be none entries. So go
|
|
* By now all the pud entries should be none entries. So go
|
|
* ahead and flush the page walk cache
|
|
* ahead and flush the page walk cache
|
|
*/
|
|
*/
|
|
flush_tlb_pgtable(tlb, address);
|
|
flush_tlb_pgtable(tlb, address);
|
|
- pgtable_free_tlb(tlb, pud, PUD_CACHE_INDEX);
|
|
|
|
|
|
+ pgtable_free_tlb(tlb, pud, PUD_INDEX);
|
|
}
|
|
}
|
|
|
|
|
|
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr)
|
|
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr)
|
|
@@ -146,14 +146,14 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
|
|
}
|
|
}
|
|
|
|
|
|
static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd,
|
|
static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd,
|
|
- unsigned long address)
|
|
|
|
|
|
+ unsigned long address)
|
|
{
|
|
{
|
|
/*
|
|
/*
|
|
* By now all the pud entries should be none entries. So go
|
|
* By now all the pud entries should be none entries. So go
|
|
* ahead and flush the page walk cache
|
|
* ahead and flush the page walk cache
|
|
*/
|
|
*/
|
|
flush_tlb_pgtable(tlb, address);
|
|
flush_tlb_pgtable(tlb, address);
|
|
- return pgtable_free_tlb(tlb, pmd, PMD_CACHE_INDEX);
|
|
|
|
|
|
+ return pgtable_free_tlb(tlb, pmd, PMD_INDEX);
|
|
}
|
|
}
|
|
|
|
|
|
static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd,
|
|
static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd,
|
|
@@ -203,7 +203,7 @@ static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table,
|
|
* ahead and flush the page walk cache
|
|
* ahead and flush the page walk cache
|
|
*/
|
|
*/
|
|
flush_tlb_pgtable(tlb, address);
|
|
flush_tlb_pgtable(tlb, address);
|
|
- pgtable_free_tlb(tlb, table, 0);
|
|
|
|
|
|
+ pgtable_free_tlb(tlb, table, PTE_INDEX);
|
|
}
|
|
}
|
|
|
|
|
|
#define check_pgt_cache() do { } while (0)
|
|
#define check_pgt_cache() do { } while (0)
|