[PATCH]: expose FORCE_MAX_ZONEORDER on x86

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Larger blocks of memory are required for e.g. higher resolution
capture card drivers; this patch just enables an already available
configuration option on x86 (it was already exposed on other
architectures).


-- 
br, marc

The best approach for you requires two steps. The first step is
reading the Manual.
    Wolfgang Denk - u-boot mailing list
From 8ad64edbf92ac8e0253677bd3f9ad376ce3be7d1 Mon Sep 17 00:00:00 2001
From: Marc Leeman <marc.leeman@xxxxxxxxx>
Date: Wed, 26 Oct 2011 10:35:24 +0200
Subject: [PATCH] KConfig x86: enable FORCE_MAX_ZONEORDER

---
 arch/x86/Kconfig |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 9a4a267..68a98e8 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1273,6 +1273,22 @@ config ILLEGAL_POINTER_VALUE
 
 source "mm/Kconfig"
 
+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.
+
+
 config HIGHPTE
 	bool "Allocate 3rd-level pagetables from highmem"
 	depends on HIGHMEM
-- 
1.7.2.5


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux