[PATCH] ppc64: limit segment tables on UP kernels

Anton Blanchard anton at samba.org
Fri Jan 21 16:40:43 EST 2005


We were allocating 48 segment tables on UP kernels. Remove them and save
192kB of kernel memory on UP builds.

Anton

Signed-off-by: Anton Blanchard <anton at samba.org>

diff -puN arch/ppc64/kernel/head.S~limit_stab_on_up arch/ppc64/kernel/head.S
--- foobar2/arch/ppc64/kernel/head.S~limit_stab_on_up	2005-01-19 15:16:28.987107097 +1100
+++ foobar2-anton/arch/ppc64/kernel/head.S	2005-01-19 15:16:29.009105597 +1100
@@ -2145,10 +2145,12 @@ swapper_pg_dir:
 ioremap_dir:
 	.space	4096
 
+#ifdef CONFIG_SMP
 /* 1 page segment table per cpu (max 48, cpu0 allocated at STAB0_PHYS_ADDR) */
 	.globl	stab_array
 stab_array:
 	.space	4096 * 48
+#endif
 	
 /*
  * This space gets a copy of optional info passed to us by the bootstrap
_



More information about the Linuxppc64-dev mailing list