Commit c61eec84 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] ppc64: limit segment tables on UP kernels

We were allocating 48 segment tables on UP kernels.  Remove them and save
192kB of kernel memory on UP builds.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d94e114f
...@@ -2145,10 +2145,12 @@ swapper_pg_dir: ...@@ -2145,10 +2145,12 @@ swapper_pg_dir:
ioremap_dir: ioremap_dir:
.space 4096 .space 4096
#ifdef CONFIG_SMP
/* 1 page segment table per cpu (max 48, cpu0 allocated at STAB0_PHYS_ADDR) */ /* 1 page segment table per cpu (max 48, cpu0 allocated at STAB0_PHYS_ADDR) */
.globl stab_array .globl stab_array
stab_array: stab_array:
.space 4096 * 48 .space 4096 * 48
#endif
/* /*
* This space gets a copy of optional info passed to us by the bootstrap * This space gets a copy of optional info passed to us by the bootstrap
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment