aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/mm/hugetlbpage.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2014-09-20 11:12:08 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-09-25 10:52:07 +0200
commit70c9d296325b398a87c30de77cc94033a60bdad2 (patch)
treeef7fae1ad7844cabc58ae6e97d8a4587b90e0d59 /arch/s390/mm/hugetlbpage.c
parents390/head.s: use zero as address for stfl (diff)
downloadlinux-dev-70c9d296325b398a87c30de77cc94033a60bdad2.tar.xz
linux-dev-70c9d296325b398a87c30de77cc94033a60bdad2.zip
s390/vmemmap: remove memset call from vmemmap_populate()
If the vmemmap array gets filled with large pages we allocate those pages with vmemmap_alloc_block(), which returns cleared pages. Only for single 4k pages we call our own vmem_alloc_pages() which does not return cleared pages. However we can also call vmemmap_alloc_block() to allocate the 4k pages. This way we can also make sure the vmemmap array is cleared after its population. Therefore we can remove the memset at the end of the function which would clear the vmmemmap array a second time on machines which do support EDAT1. On very large configurations this can save us several seconds. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm/hugetlbpage.c')
0 files changed, 0 insertions, 0 deletions