[PATCH 6/6] UML - Shrink kernel stacks

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

 



Make kernel stacks be 1 page on i386 and 2 pages on x86_64.  These
matche the host values.

Signed-off-by: Jeff Dike <[email protected]>
--
 arch/um/Kconfig   |    2 +-
 arch/um/defconfig |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.21-mm/arch/um/Kconfig
===================================================================
--- linux-2.6.21-mm.orig/arch/um/Kconfig	2007-05-09 15:45:56.000000000 -0400
+++ linux-2.6.21-mm/arch/um/Kconfig	2007-05-09 16:06:03.000000000 -0400
@@ -277,7 +277,8 @@ config HIGHMEM
 
 config KERNEL_STACK_ORDER
 	int "Kernel stack size order"
-	default 2
+	default 1 if 64BIT
+	default 0 if !64BIT
 	help
 	This option determines the size of UML kernel stacks.  They will
 	be 1 << order pages.  The default is OK unless you're running Valgrind
Index: linux-2.6.21-mm/arch/um/defconfig
===================================================================
--- linux-2.6.21-mm.orig/arch/um/defconfig	2007-05-09 15:45:56.000000000 -0400
+++ linux-2.6.21-mm/arch/um/defconfig	2007-05-09 15:57:20.000000000 -0400
@@ -86,7 +86,7 @@ CONFIG_MCONSOLE=y
 # CONFIG_MAGIC_SYSRQ is not set
 CONFIG_NEST_LEVEL=0
 # CONFIG_HIGHMEM is not set
-CONFIG_KERNEL_STACK_ORDER=2
+CONFIG_KERNEL_STACK_ORDER=0
 CONFIG_UML_REAL_TIME_CLOCK=y
 
 #
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux