From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-mm@kvack.org Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Vineet Gupta <vgupta@synopsys.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, "H. Peter Anvin" <hpa@zytor.com>, Andrew Morton <akpm@linux-foundation.org>, x86@kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] mm: Generalize ARCH_HAS_CACHE_LINE_SIZE Date: Tue, 9 Mar 2021 14:03:05 +0530 [thread overview] Message-ID: <1615278790-18053-2-git-send-email-anshuman.khandual@arm.com> (raw) In-Reply-To: <1615278790-18053-1-git-send-email-anshuman.khandual@arm.com> ARCH_HAS_CACHE_LINE_SIZE config has duplicate definitions on platforms that subscribe it. Instead, just make it a generic option which can be selected on applicable platforms. This change reduces code duplication and makes it cleaner. Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: x86@kernel.org Cc: linux-snps-arc@lists.infradead.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/arc/Kconfig | 4 +--- arch/arm64/Kconfig | 4 +--- arch/x86/Kconfig | 4 +--- mm/Kconfig | 3 +++ 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index bc8d6aecfbbd..fab05f7189c0 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -6,6 +6,7 @@ config ARC def_bool y select ARC_TIMERS + select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DMA_PREP_COHERENT select ARCH_HAS_PTE_SPECIAL @@ -48,9 +49,6 @@ config ARC select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32 select SET_FS -config ARCH_HAS_CACHE_LINE_SIZE - def_bool y - config TRACE_IRQFLAGS_SUPPORT def_bool y diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1f212b47a48a..606a2323e002 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -11,6 +11,7 @@ config ARM64 select ACPI_PPTT if ACPI select ARCH_HAS_DEBUG_WX select ARCH_BINFMT_ELF_STATE + select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DMA_PREP_COHERENT @@ -1057,9 +1058,6 @@ config SYS_SUPPORTS_HUGETLBFS config ARCH_WANT_HUGE_PMD_SHARE -config ARCH_HAS_CACHE_LINE_SIZE - def_bool y - config ARCH_ENABLE_SPLIT_PMD_PTLOCK def_bool y if PGTABLE_LEVELS > 2 diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 2792879d398e..51d171abb57a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -61,6 +61,7 @@ config X86 select ARCH_32BIT_OFF_T if X86_32 select ARCH_CLOCKSOURCE_INIT select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI + select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEBUG_VM_PGTABLE if !X86_PAE select ARCH_HAS_DEVMEM_IS_ALLOWED @@ -313,9 +314,6 @@ config GENERIC_CALIBRATE_DELAY config ARCH_HAS_CPU_RELAX def_bool y -config ARCH_HAS_CACHE_LINE_SIZE - def_bool y - config ARCH_HAS_FILTER_PGPROT def_bool y diff --git a/mm/Kconfig b/mm/Kconfig index 24c045b24b95..1c9a37fc651a 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -760,6 +760,9 @@ config IDLE_PAGE_TRACKING See Documentation/admin-guide/mm/idle_page_tracking.rst for more details. +config ARCH_HAS_CACHE_LINE_SIZE + bool + config ARCH_HAS_PTE_DEVMAP bool -- 2.20.1 _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
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>, Vineet Gupta <vgupta@synopsys.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, "H. Peter Anvin" <hpa@zytor.com>, Andrew Morton <akpm@linux-foundation.org>, x86@kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] mm: Generalize ARCH_HAS_CACHE_LINE_SIZE Date: Tue, 9 Mar 2021 14:03:05 +0530 [thread overview] Message-ID: <1615278790-18053-2-git-send-email-anshuman.khandual@arm.com> (raw) In-Reply-To: <1615278790-18053-1-git-send-email-anshuman.khandual@arm.com> ARCH_HAS_CACHE_LINE_SIZE config has duplicate definitions on platforms that subscribe it. Instead, just make it a generic option which can be selected on applicable platforms. This change reduces code duplication and makes it cleaner. Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: x86@kernel.org Cc: linux-snps-arc@lists.infradead.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/arc/Kconfig | 4 +--- arch/arm64/Kconfig | 4 +--- arch/x86/Kconfig | 4 +--- mm/Kconfig | 3 +++ 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index bc8d6aecfbbd..fab05f7189c0 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -6,6 +6,7 @@ config ARC def_bool y select ARC_TIMERS + select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DMA_PREP_COHERENT select ARCH_HAS_PTE_SPECIAL @@ -48,9 +49,6 @@ config ARC select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32 select SET_FS -config ARCH_HAS_CACHE_LINE_SIZE - def_bool y - config TRACE_IRQFLAGS_SUPPORT def_bool y diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1f212b47a48a..606a2323e002 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -11,6 +11,7 @@ config ARM64 select ACPI_PPTT if ACPI select ARCH_HAS_DEBUG_WX select ARCH_BINFMT_ELF_STATE + select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DMA_PREP_COHERENT @@ -1057,9 +1058,6 @@ config SYS_SUPPORTS_HUGETLBFS config ARCH_WANT_HUGE_PMD_SHARE -config ARCH_HAS_CACHE_LINE_SIZE - def_bool y - config ARCH_ENABLE_SPLIT_PMD_PTLOCK def_bool y if PGTABLE_LEVELS > 2 diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 2792879d398e..51d171abb57a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -61,6 +61,7 @@ config X86 select ARCH_32BIT_OFF_T if X86_32 select ARCH_CLOCKSOURCE_INIT select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI + select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEBUG_VM_PGTABLE if !X86_PAE select ARCH_HAS_DEVMEM_IS_ALLOWED @@ -313,9 +314,6 @@ config GENERIC_CALIBRATE_DELAY config ARCH_HAS_CPU_RELAX def_bool y -config ARCH_HAS_CACHE_LINE_SIZE - def_bool y - config ARCH_HAS_FILTER_PGPROT def_bool y diff --git a/mm/Kconfig b/mm/Kconfig index 24c045b24b95..1c9a37fc651a 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -760,6 +760,9 @@ config IDLE_PAGE_TRACKING See Documentation/admin-guide/mm/idle_page_tracking.rst for more details. +config ARCH_HAS_CACHE_LINE_SIZE + bool + config ARCH_HAS_PTE_DEVMAP bool -- 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:[~2021-03-09 8:33 UTC|newest] Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-09 8:33 [PATCH 0/6] mm: some config cleanups Anshuman Khandual 2021-03-09 8:45 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual [this message] 2021-03-09 8:33 ` [PATCH 1/6] mm: Generalize ARCH_HAS_CACHE_LINE_SIZE Anshuman Khandual 2021-03-09 8:33 ` [PATCH 2/6] mm: Generalize SYS_SUPPORTS_HUGETLBFS (rename as ARCH_SUPPORTS_HUGETLBFS) Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-10 4:39 ` Palmer Dabbelt 2021-03-10 4:39 ` Palmer Dabbelt 2021-03-10 4:39 ` Palmer Dabbelt 2021-03-10 4:39 ` Palmer Dabbelt 2021-03-09 8:33 ` [PATCH 3/6] mm: Generalize ARCH_ENABLE_MEMORY_[HOTPLUG|HOTREMOVE] Anshuman Khandual 2021-03-09 8:45 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` [PATCH 4/6] mm: Drop redundant ARCH_ENABLE_[HUGEPAGE|THP]_MIGRATION Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` [PATCH 5/6] mm: Drop redundant ARCH_ENABLE_SPLIT_PMD_PTLOCK Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 8:33 ` [PATCH 6/6] mm: Drop redundant HAVE_ARCH_TRANSPARENT_HUGEPAGE Anshuman Khandual 2021-03-09 8:33 ` Anshuman Khandual 2021-03-09 9:04 ` [PATCH 0/6] mm: some config cleanups Anshuman Khandual 2021-03-09 9:16 ` Anshuman Khandual 2021-03-09 9:04 ` Anshuman Khandual 2021-03-09 9:04 ` Anshuman Khandual 2021-03-09 9:04 ` Anshuman Khandual 2021-03-09 9:04 ` Anshuman Khandual 2021-03-09 10:12 ` Heiko Carstens 2021-03-09 10:12 ` Heiko Carstens 2021-03-09 10:12 ` Heiko Carstens 2021-03-09 10:12 ` Heiko Carstens 2021-03-09 10:12 ` Heiko Carstens 2021-03-09 10:12 ` Heiko Carstens 2021-03-19 18:35 ` Catalin Marinas 2021-03-19 18:35 ` Catalin Marinas 2021-03-19 18:35 ` Catalin Marinas 2021-03-19 18:35 ` Catalin Marinas 2021-03-19 18:35 ` Catalin Marinas -- strict thread matches above, loose matches on Subject: below -- 2021-03-08 6:41 Anshuman Khandual 2021-03-08 6:53 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` [PATCH 1/6] mm: Generalize ARCH_HAS_CACHE_LINE_SIZE Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` [PATCH 2/6] mm: Generalize SYS_SUPPORTS_HUGETLBFS (rename as ARCH_SUPPORTS_HUGETLBFS) Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-10 5:20 ` Michael Ellerman 2021-03-10 5:20 ` Michael Ellerman 2021-03-10 5:20 ` Michael Ellerman 2021-03-10 5:20 ` Michael Ellerman 2021-03-10 5:20 ` Michael Ellerman 2021-03-10 5:20 ` Michael Ellerman 2021-03-08 6:41 ` [PATCH 3/6] mm: Generalize ARCH_ENABLE_MEMORY_[HOTPLUG|HOTREMOVE] Anshuman Khandual 2021-03-08 6:53 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` [PATCH 4/6] mm: Drop redundant ARCH_ENABLE_[HUGEPAGE|THP]_MIGRATION Anshuman Khandual 2021-03-08 6:53 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` [PATCH 5/6] mm: Drop redundant ARCH_ENABLE_SPLIT_PMD_PTLOCK Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` [PATCH 6/6] mm: Drop redundant HAVE_ARCH_TRANSPARENT_HUGEPAGE Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 6:41 ` Anshuman Khandual 2021-03-08 8:26 ` Arnd Bergmann 2021-03-08 8:26 ` Arnd Bergmann 2021-03-08 8:26 ` Arnd Bergmann 2021-03-08 8:26 ` Arnd Bergmann 2021-03-08 8:26 ` Arnd Bergmann 2021-03-08 8:26 ` Arnd Bergmann 2021-03-08 8:26 ` Arnd Bergmann 2021-03-09 3:32 ` [PATCH 0/6] mm: some config cleanups Anshuman Khandual 2021-03-09 3:44 ` Anshuman Khandual 2021-03-09 3:32 ` Anshuman Khandual 2021-03-09 3:32 ` Anshuman Khandual 2021-03-09 3:32 ` Anshuman Khandual 2021-03-09 3:32 ` Anshuman Khandual
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=1615278790-18053-2-git-send-email-anshuman.khandual@arm.com \ --to=anshuman.khandual@arm.com \ --cc=akpm@linux-foundation.org \ --cc=bp@alien8.de \ --cc=catalin.marinas@arm.com \ --cc=hpa@zytor.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=linux-snps-arc@lists.infradead.org \ --cc=mingo@redhat.com \ --cc=tglx@linutronix.de \ --cc=vgupta@synopsys.com \ --cc=will@kernel.org \ --cc=x86@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.