]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/kconfig: move HOLES_IN_ZONE into mm
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 2 Jun 2021 03:52:52 +0000 (13:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Jun 2021 03:52:52 +0000 (13:52 +1000)
commit a55749639dc1 ("ia64: drop marked broken DISCONTIGMEM and
VIRTUAL_MEM_MAP") drop VIRTUAL_MEM_MAP, so there is no need HOLES_IN_ZONE
on ia64.

Also move HOLES_IN_ZONE into mm/Kconfig, select it if architecture needs
this feature.

Link: https://lkml.kernel.org/r/20210417075946.181402-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com> [arm64]
Cc: Will Deacon <will@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/arm64/Kconfig
arch/ia64/Kconfig
arch/mips/Kconfig
mm/Kconfig

index 9f1d8566bbf95c9e56c2f284482edab5d9d92cb7..3d6c7436a2fa742a53a309294157d1f1ed09c635 100644 (file)
@@ -201,6 +201,7 @@ config ARM64
        select HAVE_KPROBES
        select HAVE_KRETPROBES
        select HAVE_GENERIC_VDSO
+       select HOLES_IN_ZONE
        select IOMMU_DMA if IOMMU_SUPPORT
        select IRQ_DOMAIN
        select IRQ_FORCED_THREADING
@@ -1052,9 +1053,6 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
        def_bool y
        depends on NUMA
 
-config HOLES_IN_ZONE
-       def_bool y
-
 source "kernel/Kconfig.hz"
 
 config ARCH_SPARSEMEM_ENABLE
index 279252e3e0f749ac1d3f670c1330851acc29feaa..36499e99102d0947f58c85bc7d86226b66355d53 100644 (file)
@@ -308,9 +308,6 @@ config NODES_SHIFT
          MAX_NUMNODES will be 2^(This value).
          If in doubt, use the default.
 
-config HOLES_IN_ZONE
-       bool
-
 config HAVE_ARCH_NODEDATA_EXTENSION
        def_bool y
        depends on NUMA
index ed51970c08e75c683e1872261cd2152f4546e101..270fce76c6b13af5df6643ce9d4e2d4608e82445 100644 (file)
@@ -1233,9 +1233,6 @@ config HAVE_PLAT_MEMCPY
 config ISA_DMA_API
        bool
 
-config HOLES_IN_ZONE
-       bool
-
 config SYS_SUPPORTS_RELOCATABLE
        bool
        help
index 02d44e3420f56f1738c7bb2080a06797463d4ee5..75f590bd58948d7c584ef2db6162fec21f5eb19b 100644 (file)
@@ -128,6 +128,9 @@ config HAVE_FAST_GUP
        depends on MMU
        bool
 
+config HOLES_IN_ZONE
+       bool
+
 # Don't discard allocated memory used to track "memory" and "reserved" memblocks
 # after early boot, so it can still be used to test for validity of memory.
 # Also, memblocks are updated with memory hot(un)plug.