* [PATCH] arm64: mm: update SECTION_SIZE_BITS to 27 for 4k pagesize
@ 2016-06-13 12:31 Jisheng Zhang
0 siblings, 0 replies; only message in thread
From: Jisheng Zhang @ 2016-06-13 12:31 UTC (permalink / raw)
To: catalin.marinas, will.deacon
Cc: linux-arm-kernel, linux-kernel, Jisheng Zhang
On one of my platforms, linux is given 1152MB memory. With current
SECTION_SIZE_BITS 30, the reserved memmap is larger, it's a waste for
us. Inspired by disscusion[1], reducing the SECTION_SIZE_BITS to 27
which means 128M section size saves us about 14MB, a huge gain for
embeded memory constrained system.
[1]http://lkml.iu.edu/hypermail/linux/kernel/1604.1/03036.html
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
arch/arm64/include/asm/sparsemem.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/include/asm/sparsemem.h b/arch/arm64/include/asm/sparsemem.h
index 74a9d30..41c10f7 100644
--- a/arch/arm64/include/asm/sparsemem.h
+++ b/arch/arm64/include/asm/sparsemem.h
@@ -18,7 +18,11 @@
#ifdef CONFIG_SPARSEMEM
#define MAX_PHYSMEM_BITS 48
+#ifdef CONFIG_ARM64_64K_PAGES
#define SECTION_SIZE_BITS 30
+#else
+#define SECTION_SIZE_BITS 27
+#endif
#endif
#endif
--
2.8.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-13 12:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-13 12:31 [PATCH] arm64: mm: update SECTION_SIZE_BITS to 27 for 4k pagesize Jisheng Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).