Skip to contentSkip to conversation

ARM: mach-shmobile: Add CONFIG_FORCE_MAX_ZONEORDER

PATCH New Magnus Damm 1 participant 1 message May 12, 2010

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 2/5 ARM: mach-shmobile: Add CONFIG_FORCE_MAX_ZONEORDER

From: Magnus Damm <[email protected]>

Allow SH-Mobile ARM to specify CONFIG_FORCE_MAX_ZONEORDER. The Kconfig entry is taken from SH and non-4K page size stuff has been trimmed away.

---

 arch/arm/mach-shmobile/Kconfig |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/mach-shmobile/Kconfig +15 -0
@@ -69,6 +69,21 @@ config MEMORY_SIZE
 	  be overridden as normal by the 'mem=' argument on the kernel command
 	  line.
 
+config FORCE_MAX_ZONEORDER
+	int "Maximum zone order"
+	range 11 64
+	default "11"
+	help
+	  The kernel memory allocator divides physically contiguous memory
+	  blocks into "zones", where each zone is a power of two number of
+	  pages.  This option selects the largest power of two that the kernel
+	  keeps in the memory allocator.  If you need to allocate very large
+	  blocks of physically contiguous memory, then you may need to
+	  increase this value.
+
+	  This config option is actually maximum order plus one. For example,
+	  a value of 11 means that the largest free memory block is 2^10 pages.
+
 endmenu
 
 menu "Timer and clock configuration"