arch: mm: rename FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER
authorZi Yan <ziy@nvidia.com>
Mon, 15 Aug 2022 14:39:59 +0000 (10:39 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:25:56 +0000 (20:25 -0700)
This Kconfig option is used by individual arch to set its desired
MAX_ORDER.  Rename it to reflect its actual use.

Link: https://lkml.kernel.org/r/20220815143959.1511278-1-zi.yan@sent.com
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Zi Yan <ziy@nvidia.com>
Acked-by: Guo Ren <guoren@kernel.org> [csky]
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com> [arm64]
Acked-by: Huacai Chen <chenhuacai@kernel.org> [LoongArch]
Acked-by: Michael Ellerman <mpe@ellerman.id.au> [powerpc]
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Taichi Sugaya <sugaya.taichi@socionext.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Qin Jian <qinjian@cqplus1.com>
Cc: Guo Ren <guoren@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Chris Zankel <chris@zankel.net>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
24 files changed:
arch/arc/Kconfig
arch/arm/Kconfig
arch/arm/configs/imx_v6_v7_defconfig
arch/arm/configs/milbeaut_m10v_defconfig
arch/arm/configs/oxnas_v6_defconfig
arch/arm/configs/pxa_defconfig
arch/arm/configs/sama7_defconfig
arch/arm/configs/sp7021_defconfig
arch/arm64/Kconfig
arch/csky/Kconfig
arch/ia64/Kconfig
arch/ia64/include/asm/sparsemem.h
arch/loongarch/Kconfig
arch/m68k/Kconfig.cpu
arch/mips/Kconfig
arch/nios2/Kconfig
arch/powerpc/Kconfig
arch/powerpc/configs/85xx/ge_imp3a_defconfig
arch/powerpc/configs/fsl-emb-nonhw.config
arch/sh/configs/ecovec24_defconfig
arch/sh/mm/Kconfig
arch/sparc/Kconfig
arch/xtensa/Kconfig
include/linux/mmzone.h

index 9e3653253ef20d5304ac8b2ce4c08f11edc7b88c..d9a13ccf89a3aa5d6a4fb5dc8158ba2e4dba4671 100644 (file)
@@ -554,7 +554,7 @@ config ARC_BUILTIN_DTB_NAME
 
 endmenu         # "ARC Architecture Configuration"
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        default "12" if ARC_HUGEPAGE_16M
        default "11"
index 87badeae3181ea7ffd7aaca09fd12e8b3cf456b6..e6c8ee56ac528467b725adcf81852815894732db 100644 (file)
@@ -1434,7 +1434,7 @@ config ARM_MODULE_PLTS
          Disabling this is usually safe for small single-platform
          configurations. If unsure, say y.
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        default "12" if SOC_AM33XX
        default "9" if SA1111
index 01012537a9b900076f506c3463ab8abe288eacf2..fb283059daa04857e6640ca4d81b68a8e562c486 100644 (file)
@@ -31,7 +31,7 @@ CONFIG_SOC_VF610=y
 CONFIG_SMP=y
 CONFIG_ARM_PSCI=y
 CONFIG_HIGHMEM=y
-CONFIG_FORCE_MAX_ZONEORDER=14
+CONFIG_ARCH_FORCE_MAX_ORDER=14
 CONFIG_CMDLINE="noinitrd console=ttymxc0,115200"
 CONFIG_KEXEC=y
 CONFIG_CPU_FREQ=y
index 58810e98de3d4611f52d249d02211516b0038d22..8620061e19a89af0353217e126945b49fcf3103a 100644 (file)
@@ -26,7 +26,7 @@ CONFIG_THUMB2_KERNEL=y
 # CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11 is not set
 # CONFIG_ARM_PATCH_IDIV is not set
 CONFIG_HIGHMEM=y
-CONFIG_FORCE_MAX_ZONEORDER=12
+CONFIG_ARCH_FORCE_MAX_ORDER=12
 CONFIG_SECCOMP=y
 CONFIG_KEXEC=y
 CONFIG_EFI=y
index 600f78b363dd6f496bb74f461792e9b1f05f9e06..5c163a9d142971abedf3366a07c506136fca31c2 100644 (file)
@@ -12,7 +12,7 @@ CONFIG_ARCH_OXNAS=y
 CONFIG_MACH_OX820=y
 CONFIG_SMP=y
 CONFIG_NR_CPUS=16
-CONFIG_FORCE_MAX_ZONEORDER=12
+CONFIG_ARCH_FORCE_MAX_ORDER=12
 CONFIG_SECCOMP=y
 CONFIG_ARM_APPENDED_DTB=y
 CONFIG_ARM_ATAG_DTB_COMPAT=y
index 104a45722799933cf4726b8f1fc6c3b12bc33296..ce3f4ed504981c9a77207dc41ae617dada53cdee 100644 (file)
@@ -21,7 +21,7 @@ CONFIG_MACH_AKITA=y
 CONFIG_MACH_BORZOI=y
 CONFIG_PXA_SYSTEMS_CPLDS=y
 CONFIG_AEABI=y
-CONFIG_FORCE_MAX_ZONEORDER=9
+CONFIG_ARCH_FORCE_MAX_ORDER=9
 CONFIG_CMDLINE="root=/dev/ram0 ro"
 CONFIG_KEXEC=y
 CONFIG_CPU_FREQ=y
index 0384030d8b25a263d003302fd4c8ca65b4c75a65..8b2cf6ddd56871e97ac11748aae093207bbdb557 100644 (file)
@@ -19,7 +19,7 @@ CONFIG_ATMEL_CLOCKSOURCE_TCB=y
 # CONFIG_CACHE_L2X0 is not set
 # CONFIG_ARM_PATCH_IDIV is not set
 # CONFIG_CPU_SW_DOMAIN_PAN is not set
-CONFIG_FORCE_MAX_ZONEORDER=15
+CONFIG_ARCH_FORCE_MAX_ORDER=15
 CONFIG_UACCESS_WITH_MEMCPY=y
 # CONFIG_ATAGS is not set
 CONFIG_CMDLINE="console=ttyS0,115200 earlyprintk ignore_loglevel"
index 703b9aaa40f057388959434d9ccec3c64da5fa7e..151ca8c47373be3826f62f2f2185c62e28c64797 100644 (file)
@@ -18,7 +18,7 @@ CONFIG_ARCH_SUNPLUS=y
 # CONFIG_VDSO is not set
 CONFIG_SMP=y
 CONFIG_THUMB2_KERNEL=y
-CONFIG_FORCE_MAX_ZONEORDER=12
+CONFIG_ARCH_FORCE_MAX_ORDER=12
 CONFIG_VFP=y
 CONFIG_NEON=y
 CONFIG_MODULES=y
index 9fb9fff08c94d026e3b51a3c37aecdea0577d384..c5c7d812704c7af9ab8538575b9e22b2b27d4fc5 100644 (file)
@@ -1418,7 +1418,7 @@ config XEN
        help
          Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int
        default "14" if ARM64_64K_PAGES
        default "12" if ARM64_16K_PAGES
index 3cbc2dc62bafc2fa7805e79fc2316dee50be05ae..adee6ab36862e6a1a2a92ff68bfd93f57d0fd14c 100644 (file)
@@ -332,7 +332,7 @@ config HIGHMEM
        select KMAP_LOCAL
        default y
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        default "11"
 
index 26ac8ea15a9e3d3bf91832a86aa44964725b42fe..c6e06cdc738f0bb0696c8451a64ec8c64f7835d2 100644 (file)
@@ -200,7 +200,7 @@ config IA64_CYCLONE
          Say Y here to enable support for IBM EXA Cyclone time source.
          If you're unsure, answer N.
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "MAX_ORDER (11 - 17)"  if !HUGETLB_PAGE
        range 11 17  if !HUGETLB_PAGE
        default "17" if HUGETLB_PAGE
index 42ed5248fae9876875a71f5b66c40a0a884c8749..84e8ce387b698629c1172bf5882a3f7acd4db6c8 100644 (file)
 
 #define SECTION_SIZE_BITS      (30)
 #define MAX_PHYSMEM_BITS       (50)
-#ifdef CONFIG_FORCE_MAX_ZONEORDER
-#if ((CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS)
+#ifdef CONFIG_ARCH_FORCE_MAX_ORDER
+#if ((CONFIG_ARCH_FORCE_MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS)
 #undef SECTION_SIZE_BITS
-#define SECTION_SIZE_BITS (CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT)
+#define SECTION_SIZE_BITS (CONFIG_ARCH_FORCE_MAX_ORDER - 1 + PAGE_SHIFT)
 #endif
 #endif
 
index 26aeb1408e56937ac20491937b05d58507ff5719..3c7a5a54b80862fab754d64f724451cac1c61c13 100644 (file)
@@ -370,7 +370,7 @@ config NODES_SHIFT
        default "6"
        depends on NUMA
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        range 14 64 if PAGE_SIZE_64KB
        default "14" if PAGE_SIZE_64KB
index e0e9e31339c1250dce4ea39d95540689186533a2..3b2f3950852427b7ca5228e965ebb7a9d705919c 100644 (file)
@@ -399,7 +399,7 @@ config SINGLE_MEMORY_CHUNK
          order" to save memory that could be wasted for unused memory map.
          Say N if not sure.
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order" if ADVANCED
        depends on !SINGLE_MEMORY_CHUNK
        default "11"
index ec21f899924985fe8e57811a35d3790f439aeafa..70d28976a40dee257058a174c6c08cd719c9efed 100644 (file)
@@ -2140,7 +2140,7 @@ config PAGE_SIZE_64KB
 
 endchoice
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
        default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
index 4167f1eb4cd83321333c4c5eea81dfce5646a995..a582f72104f39229ca524cc2aa5f645f3bc1d5f3 100644 (file)
@@ -44,7 +44,7 @@ menu "Kernel features"
 
 source "kernel/Kconfig.hz"
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        range 9 20
        default "11"
index 4c466acdc70d4cbe2d94271f9051c4e73868c863..39d71d7701bda01395f497fdd2b30458438fd7f8 100644 (file)
@@ -845,7 +845,7 @@ config DATA_SHIFT
          in that case. If PIN_TLB is selected, it must be aligned to 8M as
          8M pages will be pinned.
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        range 8 9 if PPC64 && PPC_64K_PAGES
        default "9" if PPC64 && PPC_64K_PAGES
index f29c166998af5948a7c5fb6843b2cbd6b40c0fa2..e7672c1863254b7f5a50088d2c1ee3a664001de4 100644 (file)
@@ -30,7 +30,7 @@ CONFIG_PREEMPT=y
 # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
 CONFIG_BINFMT_MISC=m
 CONFIG_MATH_EMULATION=y
-CONFIG_FORCE_MAX_ZONEORDER=17
+CONFIG_ARCH_FORCE_MAX_ORDER=17
 CONFIG_PCI=y
 CONFIG_PCIEPORTBUS=y
 CONFIG_PCI_MSI=y
index f14c6dbd7346cd2da36c067b3f0b1760b913bf95..ab8a8c4530d9259e30b19935c5caf0cbcde4ed9a 100644 (file)
@@ -41,7 +41,7 @@ CONFIG_FIXED_PHY=y
 CONFIG_FONT_8x16=y
 CONFIG_FONT_8x8=y
 CONFIG_FONTS=y
-CONFIG_FORCE_MAX_ZONEORDER=13
+CONFIG_ARCH_FORCE_MAX_ORDER=13
 CONFIG_FRAMEBUFFER_CONSOLE=y
 CONFIG_FRAME_WARN=1024
 CONFIG_FTL=y
index e699e2e041284313a1e49dd5587fb8bfd42c04f0..b52e14ccb450d4c63868810bcd388a3c7372ce77 100644 (file)
@@ -8,7 +8,7 @@ CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 # CONFIG_BLK_DEV_BSG is not set
 CONFIG_CPU_SUBTYPE_SH7724=y
-CONFIG_FORCE_MAX_ZONEORDER=12
+CONFIG_ARCH_FORCE_MAX_ORDER=12
 CONFIG_MEMORY_SIZE=0x10000000
 CONFIG_FLATMEM_MANUAL=y
 CONFIG_SH_ECOVEC=y
index ba569cfb43684eee0f7f71c3cb263f316250715f..411fdc0901f7ea75a5f1f4e8b95029f1aa3c7129 100644 (file)
@@ -18,7 +18,7 @@ config PAGE_OFFSET
        default "0x80000000" if MMU
        default "0x00000000"
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        range 9 64 if PAGE_SIZE_16KB
        default "9" if PAGE_SIZE_16KB
index 1c852bb530ecc949de22242c36cd8802c63f94f9..4d3d1af90d5217e1f16f1a92085afb9c4eef936e 100644 (file)
@@ -269,7 +269,7 @@ config ARCH_SPARSEMEM_ENABLE
 config ARCH_SPARSEMEM_DEFAULT
        def_bool y if SPARC64
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        default "13"
        help
index 12ac277282bab31ba8c5eba7b246f64bddecbb78..bcb0c5d2abc2fe78337eec71fab09d11d212898a 100644 (file)
@@ -771,7 +771,7 @@ config HIGHMEM
 
          If unsure, say Y.
 
-config FORCE_MAX_ZONEORDER
+config ARCH_FORCE_MAX_ORDER
        int "Maximum zone order"
        default "11"
        help
index 025754b0bc09cff8eefeaea56aa1c239a7393e2d..fd61347b4b1f13cdd67efae89b4474ea8e6ee015 100644 (file)
 #include <asm/page.h>
 
 /* Free memory management - zoned buddy allocator.  */
-#ifndef CONFIG_FORCE_MAX_ZONEORDER
+#ifndef CONFIG_ARCH_FORCE_MAX_ORDER
 #define MAX_ORDER 11
 #else
-#define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
+#define MAX_ORDER CONFIG_ARCH_FORCE_MAX_ORDER
 #endif
 #define MAX_ORDER_NR_PAGES (1 << (MAX_ORDER - 1))