Skip to content

Commit b6b34b2

Browse files
kiryltorvalds
authored andcommitted
mips: use generic_pmdp_establish as pmdp_establish
MIPS doesn't support hardware dirty/accessed bits. generic_pmdp_establish() is suitable in this case. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Kirill A. Shutemov <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: David Daney <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1d78a62 commit b6b34b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/mips/include/asm/pgtable.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma,
534534

535535
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
536536

537+
/* We don't have hardware dirty/accessed bits, generic_pmdp_establish is fine.*/
538+
#define pmdp_establish generic_pmdp_establish
539+
537540
#define has_transparent_hugepage has_transparent_hugepage
538541
extern int has_transparent_hugepage(void);
539542

0 commit comments

Comments
 (0)