sparc64: Kill unnecessary tables and increase MAX_BANKS.
authorDavid S. Miller <davem@davemloft.net>
Sun, 28 Sep 2014 04:30:57 +0000 (21:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:43:18 +0000 (09:43 -0700)
commit5c51a8b0cd0764d02fde570f274973ec182bc301
tree3721b2865a1adce3e396fec2bcfae7348de0f235
parent82f230ed1fa89d515dc023fd277ca24e00b83f86
sparc64: Kill unnecessary tables and increase MAX_BANKS.

[ Upstream commit d195b71bad4347d2df51072a537f922546a904f1 ]

swapper_low_pmd_dir and swapper_pud_dir are actually completely
useless and unnecessary.

We just need swapper_pg_dir[].  Naturally the other page table chunks
will be allocated on an as-needed basis.  Since the kernel actually
accesses these tables in the PAGE_OFFSET view, there is not even a TLB
locality advantage of placing them in the kernel image.

Use the hard coded vmlinux.ld.S slot for swapper_pg_dir which is
naturally page aligned.

Increase MAX_BANKS to 1024 in order to handle heavily fragmented
virtual guests.

Even with this MAX_BANKS increase, the kernel is 20K+ smaller.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Bob Picco <bob.picco@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/include/asm/pgtable_64.h
arch/sparc/kernel/vmlinux.lds.S
arch/sparc/mm/init_64.c