linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it
@ 2024-02-04 13:48 Masahiro Yamada
  2024-02-06  4:04 ` Huacai Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2024-02-04 13:48 UTC (permalink / raw)
  To: Huacai Chen, WANG Xuerui, loongarch; +Cc: Masahiro Yamada, linux-kernel

ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/loongarch/Kconfig | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 10959e6c3583..64e9a01c7f36 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -12,6 +12,7 @@ config LOONGARCH
 	select ARCH_DISABLE_KASAN_INLINE
 	select ARCH_ENABLE_MEMORY_HOTPLUG
 	select ARCH_ENABLE_MEMORY_HOTREMOVE
+	select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
 	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
 	select ARCH_HAS_CPU_FINALIZE_INIT
 	select ARCH_HAS_FORTIFY_SOURCE
@@ -667,10 +668,6 @@ config ARCH_SPARSEMEM_ENABLE
 	  or have huge holes in the physical address space for other reasons.
 	  See <file:Documentation/mm/numa.rst> for more.
 
-config ARCH_ENABLE_THP_MIGRATION
-	def_bool y
-	depends on TRANSPARENT_HUGEPAGE
-
 config ARCH_MEMORY_PROBE
 	def_bool y
 	depends on MEMORY_HOTPLUG
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it
  2024-02-04 13:48 [PATCH] loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it Masahiro Yamada
@ 2024-02-06  4:04 ` Huacai Chen
  0 siblings, 0 replies; 2+ messages in thread
From: Huacai Chen @ 2024-02-06  4:04 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: WANG Xuerui, loongarch, linux-kernel

Queued, thanks.

Huacai

On Sun, Feb 4, 2024 at 9:48 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
>  arch/loongarch/Kconfig | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
> index 10959e6c3583..64e9a01c7f36 100644
> --- a/arch/loongarch/Kconfig
> +++ b/arch/loongarch/Kconfig
> @@ -12,6 +12,7 @@ config LOONGARCH
>         select ARCH_DISABLE_KASAN_INLINE
>         select ARCH_ENABLE_MEMORY_HOTPLUG
>         select ARCH_ENABLE_MEMORY_HOTREMOVE
> +       select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
>         select ARCH_HAS_ACPI_TABLE_UPGRADE      if ACPI
>         select ARCH_HAS_CPU_FINALIZE_INIT
>         select ARCH_HAS_FORTIFY_SOURCE
> @@ -667,10 +668,6 @@ config ARCH_SPARSEMEM_ENABLE
>           or have huge holes in the physical address space for other reasons.
>           See <file:Documentation/mm/numa.rst> for more.
>
> -config ARCH_ENABLE_THP_MIGRATION
> -       def_bool y
> -       depends on TRANSPARENT_HUGEPAGE
> -
>  config ARCH_MEMORY_PROBE
>         def_bool y
>         depends on MEMORY_HOTPLUG
> --
> 2.40.1
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-06  4:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-04 13:48 [PATCH] loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it Masahiro Yamada
2024-02-06  4:04 ` Huacai Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).