sparc64: Use kernel page tables for vmemmap.
authorDavid S. Miller <davem@davemloft.net>
Thu, 25 Sep 2014 04:20:14 +0000 (21:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:38:27 +0000 (09:38 -0700)
commit29070cdcc7533872cb5a16949603557cde43eb84
tree2acb96ac015b59471a6d3272772ffddde39df3c5
parenteccd108dbb4b150f3554ddd5a87c05d0627ec65d
sparc64: Use kernel page tables for vmemmap.

[ Upstream commit c06240c7f5c39c83dfd7849c0770775562441b96 ]

For sparse memory configurations, the vmemmap array behaves terribly
and it takes up an inordinate amount of space in the BSS section of
the kernel image unconditionally.

Just build huge PMDs and look them up just like we do for TLB misses
in the vmalloc area.

Kernel BSS shrinks by about 2MB.

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/kernel/ktlb.S
arch/sparc/mm/init_64.c
arch/sparc/mm/init_64.h