]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc64: Use kernel page tables for vmemmap.
authorDavid S. Miller <davem@davemloft.net>
Thu, 25 Sep 2014 04:20:14 +0000 (21:20 -0700)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:10:40 +0000 (15:10 +0100)
commitb7be15979833db31402d59aaed3c9055452a3273
treeee4fc1476d83834e15b4d3bf8f2fb0e0abad82d7
parentcac611bda6823d445f38578391c213b7f62e2cbd
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>
arch/sparc/kernel/ktlb.S
arch/sparc/mm/init_64.c
arch/sparc/mm/init_64.h