]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc: add FORCE_MAX_ZONEORDER
authorDave Kleikamp <dave.kleikamp@oracle.com>
Fri, 6 Mar 2015 19:53:34 +0000 (13:53 -0600)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 18 Apr 2016 16:42:50 +0000 (11:42 -0500)
Allow for a memory allocation large enough to load a kernel for
kexec in contiguous memory.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
arch/sparc/Kconfig

index 9c56e0d822a93ff74d8261fddbbd013f9a00f50b..f537c6b51b272d9ef0423c0e5019c31e691d00e5 100644 (file)
@@ -347,6 +347,21 @@ config ARCH_SPARSEMEM_ENABLE
 config ARCH_SPARSEMEM_DEFAULT
        def_bool y if SPARC64
 
+config FORCE_MAX_ZONEORDER
+       int "Maximum zone order"
+       default "13" if KEXEC
+       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.
+
 source "mm/Kconfig"
 
 if SPARC64