]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/sparc/include/asm/hugetlb.h
hugetlb: introduce generic version of huge_ptep_set_access_flags()
[linux.git] / arch / sparc / include / asm / hugetlb.h
index 2101ea217f33f1887cfd97268eca8f61a729eb00..028a1465fbe79ac779504b8da3dbff6ce526633a 100644 (file)
@@ -32,6 +32,7 @@ static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
 {
 }
 
+#define __HAVE_ARCH_HUGE_PTEP_SET_WRPROTECT
 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm,
                                           unsigned long addr, pte_t *ptep)
 {
@@ -39,6 +40,7 @@ static inline void huge_ptep_set_wrprotect(struct mm_struct *mm,
        set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte));
 }
 
+#define __HAVE_ARCH_HUGE_PTEP_SET_ACCESS_FLAGS
 static inline int huge_ptep_set_access_flags(struct vm_area_struct *vma,
                                             unsigned long addr, pte_t *ptep,
                                             pte_t pte, int dirty)