Loading arch/arm64/Kconfig +11 −0 Original line number Diff line number Diff line Loading @@ -282,6 +282,17 @@ config ARCH_ENABLE_MEMORY_HOTREMOVE config SMP def_bool y config HOTPLUG_SIZE_BITS int "Memory hotplug block size(29 => 512MB 30 => 1GB)" depends on SPARSEMEM depends on MEMORY_HOTPLUG default 30 help Selects granularity of hotplug memory. Block size for memory hotplug is represent as a power of 2. If unsure, stick with default value. config KERNEL_MODE_NEON def_bool y Loading arch/arm64/include/asm/sparsemem.h +4 −0 Original line number Diff line number Diff line Loading @@ -7,7 +7,11 @@ #ifdef CONFIG_SPARSEMEM #define MAX_PHYSMEM_BITS CONFIG_ARM64_PA_BITS #ifndef CONFIG_MEMORY_HOTPLUG #define SECTION_SIZE_BITS 30 #else #define SECTION_SIZE_BITS CONFIG_HOTPLUG_SIZE_BITS #endif #endif #endif Loading
arch/arm64/Kconfig +11 −0 Original line number Diff line number Diff line Loading @@ -282,6 +282,17 @@ config ARCH_ENABLE_MEMORY_HOTREMOVE config SMP def_bool y config HOTPLUG_SIZE_BITS int "Memory hotplug block size(29 => 512MB 30 => 1GB)" depends on SPARSEMEM depends on MEMORY_HOTPLUG default 30 help Selects granularity of hotplug memory. Block size for memory hotplug is represent as a power of 2. If unsure, stick with default value. config KERNEL_MODE_NEON def_bool y Loading
arch/arm64/include/asm/sparsemem.h +4 −0 Original line number Diff line number Diff line Loading @@ -7,7 +7,11 @@ #ifdef CONFIG_SPARSEMEM #define MAX_PHYSMEM_BITS CONFIG_ARM64_PA_BITS #ifndef CONFIG_MEMORY_HOTPLUG #define SECTION_SIZE_BITS 30 #else #define SECTION_SIZE_BITS CONFIG_HOTPLUG_SIZE_BITS #endif #endif #endif