diff options
author | Nikunj Kela | 2018-07-06 19:47:24 +0200 |
---|---|---|
committer | Will Deacon | 2018-07-09 13:57:25 +0200 |
commit | e7d4bac428edb806c5f5d903ab8850ffbe0ed9ce (patch) | |
tree | ebb0369bc2fff29997f34943453f9b73039415b4 /arch/arm64/Kconfig | |
parent | MAINTAINERS: arm64: Remove boot/dts/ directory from arm64 entry (diff) | |
download | kernel-qcow2-linux-e7d4bac428edb806c5f5d903ab8850ffbe0ed9ce.tar.gz kernel-qcow2-linux-e7d4bac428edb806c5f5d903ab8850ffbe0ed9ce.tar.xz kernel-qcow2-linux-e7d4bac428edb806c5f5d903ab8850ffbe0ed9ce.zip |
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>
Diffstat (limited to 'arch/arm64/Kconfig')
-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 |