diff options
author | Nikunj Kela <nkela@cisco.com> | 2018-07-06 10:47:24 -0700 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-07-09 12:57:25 +0100 |
commit | e7d4bac428edb806c5f5d903ab8850ffbe0ed9ce (patch) | |
tree | ebb0369bc2fff29997f34943453f9b73039415b4 | |
parent | d7c7118caf99fc4fe3b2e1f47e3d23b2bbaf7929 (diff) |
arm64: add ARM64-specific support for flatmem
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@external.cisco.com
Cc: Nikunj Kela <nkela@cisco.com>
Signed-off-by: Nikunj Kela <nkela@cisco.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arch/arm64/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 476de9b1d239..c548b3dd48ab 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -786,6 +786,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 |