From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-mm@kvack.org Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64/mm: Drop __HAVE_ARCH_HUGE_PTEP_GET Date: Tue, 14 Apr 2020 17:14:28 +0530 [thread overview] Message-ID: <1586864670-21799-2-git-send-email-anshuman.khandual@arm.com> (raw) In-Reply-To: <1586864670-21799-1-git-send-email-anshuman.khandual@arm.com> Platform specific huge_ptep_get() is required only when fetching the huge PTE involves more than just dereferencing the page table pointer. This is not the case on arm64 platform. Hence huge_ptep_pte() can be dropped along with it's __HAVE_ARCH_HUGE_PTEP_GET subscription. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> --- arch/arm64/include/asm/hugetlb.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm64/include/asm/hugetlb.h b/arch/arm64/include/asm/hugetlb.h index 2eb6c234d594..b88878ddc88b 100644 --- a/arch/arm64/include/asm/hugetlb.h +++ b/arch/arm64/include/asm/hugetlb.h @@ -17,12 +17,6 @@ extern bool arch_hugetlb_migration_supported(struct hstate *h); #endif -#define __HAVE_ARCH_HUGE_PTEP_GET -static inline pte_t huge_ptep_get(pte_t *ptep) -{ - return READ_ONCE(*ptep); -} - static inline int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, unsigned long len) { -- 2.20.1
WARNING: multiple messages have this Message-ID (diff)
From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-mm@kvack.org Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, linux-kernel@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>, Will Deacon <will@kernel.org>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] arm64/mm: Drop __HAVE_ARCH_HUGE_PTEP_GET Date: Tue, 14 Apr 2020 17:14:28 +0530 [thread overview] Message-ID: <1586864670-21799-2-git-send-email-anshuman.khandual@arm.com> (raw) In-Reply-To: <1586864670-21799-1-git-send-email-anshuman.khandual@arm.com> Platform specific huge_ptep_get() is required only when fetching the huge PTE involves more than just dereferencing the page table pointer. This is not the case on arm64 platform. Hence huge_ptep_pte() can be dropped along with it's __HAVE_ARCH_HUGE_PTEP_GET subscription. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> --- arch/arm64/include/asm/hugetlb.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm64/include/asm/hugetlb.h b/arch/arm64/include/asm/hugetlb.h index 2eb6c234d594..b88878ddc88b 100644 --- a/arch/arm64/include/asm/hugetlb.h +++ b/arch/arm64/include/asm/hugetlb.h @@ -17,12 +17,6 @@ extern bool arch_hugetlb_migration_supported(struct hstate *h); #endif -#define __HAVE_ARCH_HUGE_PTEP_GET -static inline pte_t huge_ptep_get(pte_t *ptep) -{ - return READ_ONCE(*ptep); -} - static inline int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, unsigned long len) { -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-04-14 11:45 UTC|newest] Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-14 11:44 [PATCH 0/3] mm/hugetlb: Add some new arch enabling macros Anshuman Khandual 2020-04-14 11:56 ` Anshuman Khandual 2020-04-14 11:56 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual [this message] 2020-04-14 11:44 ` [PATCH 1/3] arm64/mm: Drop __HAVE_ARCH_HUGE_PTEP_GET Anshuman Khandual 2020-04-14 11:44 ` [PATCH 2/3] mm/hugetlb: Introduce HAVE_ARCH_IS_HUGEPAGE_ONLY_RANGE Anshuman Khandual 2020-04-14 11:56 ` Anshuman Khandual 2020-04-14 11:56 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` [PATCH 3/3] mm/hugetlb: Introduce HAVE_ARCH_CLEAR_HUGEPAGE_FLAGS Anshuman Khandual 2020-04-14 11:56 ` Anshuman Khandual 2020-04-14 11:56 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-14 11:44 ` Anshuman Khandual 2020-04-26 0:55 ` Andrew Morton 2020-04-26 0:55 ` Andrew Morton 2020-04-26 0:55 ` Andrew Morton 2020-04-26 0:55 ` Andrew Morton 2020-04-26 0:55 ` Andrew Morton 2020-04-26 0:55 ` Andrew Morton 2020-04-26 2:43 ` Anshuman Khandual 2020-04-26 2:55 ` Anshuman Khandual 2020-04-26 2:43 ` Anshuman Khandual 2020-04-26 2:43 ` Anshuman Khandual 2020-04-26 2:43 ` Anshuman Khandual 2020-04-26 2:43 ` Anshuman Khandual 2020-04-26 3:01 ` Andrew Morton 2020-04-26 3:01 ` Andrew Morton 2020-04-26 3:01 ` Andrew Morton 2020-04-26 3:01 ` Andrew Morton 2020-04-26 3:01 ` Andrew Morton 2020-04-26 3:01 ` Andrew Morton 2020-05-05 2:51 ` Anshuman Khandual 2020-05-05 2:52 ` Anshuman Khandual 2020-05-05 2:51 ` Anshuman Khandual 2020-05-05 2:51 ` Anshuman Khandual 2020-05-05 2:51 ` Anshuman Khandual 2020-05-05 2:51 ` Anshuman Khandual 2020-05-05 20:12 ` Andrew Morton 2020-05-05 20:12 ` Andrew Morton 2020-05-05 20:12 ` Andrew Morton 2020-05-05 20:12 ` Andrew Morton 2020-05-05 20:12 ` Andrew Morton 2020-05-05 20:12 ` Andrew Morton
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1586864670-21799-2-git-send-email-anshuman.khandual@arm.com \ --to=anshuman.khandual@arm.com \ --cc=akpm@linux-foundation.org \ --cc=catalin.marinas@arm.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=will@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.