From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id 8BC226B0266 for ; Tue, 12 Sep 2017 11:40:00 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id q76so21111995pfq.5 for ; Tue, 12 Sep 2017 08:40:00 -0700 (PDT) Received: from mga09.intel.com (mga09.intel.com. [134.134.136.24]) by mx.google.com with ESMTPS id w11si8213715pfj.223.2017.09.12.08.39.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 08:39:59 -0700 (PDT) From: "Kirill A. Shutemov" Subject: [PATCHv3 05/11] mips: Use generic_pmdp_establish as pmdp_establish Date: Tue, 12 Sep 2017 18:39:35 +0300 Message-Id: <20170912153941.47012-6-kirill.shutemov@linux.intel.com> In-Reply-To: <20170912153941.47012-1-kirill.shutemov@linux.intel.com> References: <20170912153941.47012-1-kirill.shutemov@linux.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton , Vlastimil Babka , Vineet Gupta , Russell King , Will Deacon , Catalin Marinas , Ralf Baechle , "David S. Miller" , "Aneesh Kumar K . V" , Martin Schwidefsky , Heiko Carstens , Andrea Arcangeli Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" , David Daney , linux-mips@linux-mips.org MIPS doesn't support hardware dirty/accessed bits. generic_pmdp_establish() is suitable in this case. Signed-off-by: Kirill A. Shutemov Cc: Ralf Baechle Cc: David Daney Cc: linux-mips@linux-mips.org --- 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org