[PATCHv3 05/11] mips: Use generic_pmdp_establish as pmdp_establish

From
Kirill A. Shutemov <hidden>
Date
2017-09-12 15:41:24
Also in
linux-arch, linux-mm, lkml
MIPS doesn't support hardware dirty/accessed bits.
generic_pmdp_establish() is suitable in this case.

Signed-off-by: Kirill A. Shutemov <redacted>
Cc: Ralf Baechle <redacted>
Cc: David Daney <redacted>
Cc: <redacted>
---
 arch/mips/include/asm/pgtable.h | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h
index 9e9e94415d08..7b3a3139e82d 100644
--- a/arch/mips/include/asm/pgtable.h
+++ b/arch/mips/include/asm/pgtable.h
@@ -534,6 +534,9 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma,
 
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
 
+/* We don't have hardware dirty/accessed bits, generic_pmdp_establish is fine.*/
+#define pmdp_establish generic_pmdp_establish
+
 #define has_transparent_hugepage has_transparent_hugepage
 extern int has_transparent_hugepage(void);
 
-- 
2.14.1
Thread (1 message) 1 message, 1 author, last reply 2017-09-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help