diff options
Diffstat (limited to 'include/linux/pgtable.h')
| -rw-r--r-- | include/linux/pgtable.h | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index e24d2c992b11..f4f4077b97aa 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -62,6 +62,7 @@ static inline unsigned long pte_index(unsigned long address)  {  	return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1);  } +#define pte_index pte_index  #ifndef pmd_index  static inline unsigned long pmd_index(unsigned long address) @@ -258,6 +259,14 @@ static inline int pmdp_clear_flush_young(struct vm_area_struct *vma,  #endif /* CONFIG_TRANSPARENT_HUGEPAGE */  #endif +#ifndef __HAVE_ARCH_PTEP_CLEAR +static inline void ptep_clear(struct mm_struct *mm, unsigned long addr, +			      pte_t *ptep) +{ +	pte_clear(mm, addr, ptep); +} +#endif +  #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR  static inline pte_t ptep_get_and_clear(struct mm_struct *mm,  				       unsigned long address,  |