rk: revert to v3.10
[firefly-linux-kernel-4.4.55.git] / arch / x86 / include / asm / pgtable.h
index 5460bf923e16e055c2e77d6e4d14cccf89e8f652..1e672234c4ffd1de71117d76ccc122801fb9e9de 100644 (file)
@@ -415,16 +415,9 @@ static inline int pte_present(pte_t a)
 }
 
 #define pte_accessible pte_accessible
-static inline bool pte_accessible(struct mm_struct *mm, pte_t a)
+static inline int pte_accessible(pte_t a)
 {
-       if (pte_flags(a) & _PAGE_PRESENT)
-               return true;
-
-       if ((pte_flags(a) & (_PAGE_PROTNONE | _PAGE_NUMA)) &&
-                       mm_tlb_flush_pending(mm))
-               return true;
-
-       return false;
+       return pte_flags(a) & _PAGE_PRESENT;
 }
 
 static inline int pte_hidden(pte_t pte)