xtensa: add FORCE_MAX_ZONEORDER to Kconfig
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 Nov 2015 14:51:02 +0000 (17:51 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 3 Nov 2015 14:19:37 +0000 (17:19 +0300)
Make maximal memory allocation order configurable, so that drivers could
allocate huge buffers when they need to.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kconfig

index 3d35867c61f166f1a18bc5644401d9a18bf2d6b1..82044f73232335f715a1356ae61f7d66dc538f51 100644 (file)
@@ -398,6 +398,20 @@ config SIMDISK1_FILENAME
 
 source "mm/Kconfig"
 
+config FORCE_MAX_ZONEORDER
+       int "Maximum zone order"
+       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 "drivers/pcmcia/Kconfig"
 
 source "drivers/pci/hotplug/Kconfig"