]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] Memory Add Fixes for ppc64
authorMike Kravetz <kravetz@us.ibm.com>
Mon, 7 Nov 2005 21:48:59 +0000 (13:48 -0800)
committerPaul Mackerras <paulus@samba.org>
Tue, 8 Nov 2005 00:20:00 +0000 (11:20 +1100)
On Tue, Nov 08, 2005 at 08:12:56AM +1100, Benjamin Herrenschmidt wrote:
> Yes, the MAX_ORDER should be different indeed. But can Kconfig do that ?
> That is have the default value be different based on a Kconfig option ?
> I don't see that ... We may have to do things differently here...

This seems to be done in other parts of the Kconfig file.  Using those
as an example, this should keep the MAX_ORDER block size at 16MB.

Signed-off-by: Mike Kravetz <kravetz@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig
arch/ppc64/Kconfig

index 3ac9195dab35cbf483e698c8e0ac506549fa2d7c..1493c7896fe35f3af26a866e56f4c1b5aed5a2b5 100644 (file)
@@ -492,6 +492,7 @@ source "fs/Kconfig.binfmt"
 config FORCE_MAX_ZONEORDER
        int
        depends on PPC64
+       default "9" if PPC_64K_PAGES
        default "13"
 
 config MATH_EMULATION
index 94a81279deaca182ba00768b0727460c7ae99229..29552348e58165db414bf6f609ae19e31e9fad7a 100644 (file)
@@ -56,6 +56,7 @@ config PPC_STD_MMU
 # max order + 1
 config FORCE_MAX_ZONEORDER
        int
+       default "9" if PPC_64K_PAGES
        default "13"
 
 source "init/Kconfig"