From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752837AbdLMK6k (ORCPT ); Wed, 13 Dec 2017 05:58:40 -0500 Received: from mga06.intel.com ([134.134.136.31]:37265 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752723AbdLMK6M (ORCPT ); Wed, 13 Dec 2017 05:58:12 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,397,1508828400"; d="scan'208";a="11936141" From: "Kirill A. Shutemov" To: Andrew Morton Cc: Vlastimil Babka , Andrea Arcangeli , Michal Hocko , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" , Ralf Baechle , David Daney , linux-mips@linux-mips.org Subject: [PATCHv4 05/12] mips: Use generic_pmdp_establish as pmdp_establish Date: Wed, 13 Dec 2017 13:57:49 +0300 Message-Id: <20171213105756.69879-6-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171213105756.69879-1-kirill.shutemov@linux.intel.com> References: <20171213105756.69879-1-kirill.shutemov@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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, #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.15.0