Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 108c8433 authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Swathi Sridhar
Browse files

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: default avatarSudarshan Rajagopalan <sudaraja@codeaurora.org>
[swatsrid@codeaurora.org: Fix merge conflicts]
Signed-off-by: default avatarSwathi Sridhar <swatsrid@codeaurora.org>
parent da65cea8
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -262,6 +262,18 @@ config HAVE_GENERIC_GUP
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
	depends on QCOM_MEM_OFFLINE
	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

+4 −0
Original line number Diff line number Diff line
@@ -18,7 +18,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