diff options
| author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2018-01-31 19:17:58 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-31 20:18:37 -0500 |
| commit | b6b34b2dfb7bab7b76a08862fe034c3bb29ec20d (patch) | |
| tree | c6c4d30f81ff4f7de6f21803b547baf3009cad80 | |
| parent | 1d78a62cb3bb2bd95d00149daaa144f1fe0a77df (diff) | |
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/20171213105756.69879-6-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <david.daney@cavium.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | arch/mips/include/asm/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index 1a508a74d48d..129e0328367f 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, | |||
| 534 | 534 | ||
| 535 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | 535 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
| 536 | 536 | ||
| 537 | /* We don't have hardware dirty/accessed bits, generic_pmdp_establish is fine.*/ | ||
| 538 | #define pmdp_establish generic_pmdp_establish | ||
| 539 | |||
| 537 | #define has_transparent_hugepage has_transparent_hugepage | 540 | #define has_transparent_hugepage has_transparent_hugepage |
| 538 | extern int has_transparent_hugepage(void); | 541 | extern int has_transparent_hugepage(void); |
| 539 | 542 | ||
