mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
arm64: Make section size configurable for memory hotplug
Currently On arm64, memory section size is hard-coded to 1G. Make this configurable if memory-hotplug is enabled, to support more finer granularity for hotplug-able memory. Change-Id: Id889f93537df8ae7e72094b552cff735d31048e6 Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org> [swatsrid@codeaurora.org: Fix merge conflicts] Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org> [isaacm@codeaurora.org: Remove unnecessary config dependency] Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
ae998ece62
commit
d62cabc403
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue