[PATCH v3] arm64: add ARM64-specific support for flatmem

From: Nikunj Kela
Date: Fri Jul 06 2018 - 13:47:30 EST


Flatmem is useful in reducing kernel memory usage.
One usecase is in kdump kernel. We are able to save
~14M by moving to flatmem scheme.

Cc: xe-kernel@xxxxxxxxxxxxxxxxxx
Cc: Nikunj Kela <nkela@xxxxxxxxx>
Signed-off-by: Nikunj Kela <nkela@xxxxxxxxx>
---
arch/arm64/Kconfig | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 42c090c..f5b4c49 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -775,6 +775,9 @@ config ARCH_SPARSEMEM_DEFAULT
config ARCH_SELECT_MEMORY_MODEL
def_bool ARCH_SPARSEMEM_ENABLE

+config ARCH_FLATMEM_ENABLE
+ def_bool y
+
config HAVE_ARCH_PFN_VALID
def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM

--
2.10.3.dirty