]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/mm,vmemmap: use 1MB frames for vmemmap
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 17 Oct 2012 10:18:05 +0000 (12:18 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Oct 2012 15:31:27 +0000 (17:31 +0200)
commitd1f8a7f0e9b07d98fd2589755e4ef6805720fbfd
tree624a359307aef201ba4eb7e089a85c4488cd7ab0
parent64dac7ac3f7c86cf8efe69a11775be0b91ece77a
s390/mm,vmemmap: use 1MB frames for vmemmap

Use 1MB frames for vmemmap if EDAT1 is available in order to
reduce TLB pressure
Always use a 1MB frame even if its only partially needed for
struct pages. Otherwise we would end up with a mix of large
frame and page mappings, because vmemmap_populate gets called
for each section (256MB -> 3.5MB memmap) separately.
Worst case is that we would waste 512KB.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/vmem.c