Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbdILPlY (ORCPT ); Tue, 12 Sep 2017 11:41:24 -0400 Received: from mga04.intel.com ([192.55.52.120]:28346 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751541AbdILPj7 (ORCPT ); Tue, 12 Sep 2017 11:39:59 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,383,1500966000"; d="scan'208";a="134511291" From: "Kirill A. Shutemov" 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 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> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170912153941.47012-1-kirill.shutemov@linux.intel.com> References: <20170912153941.47012-1-kirill.shutemov@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 927 Lines: 27 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