• Heiko Carstens's avatar
    s390/vmemmap: remove memset call from vmemmap_populate() · 70c9d296
    Heiko Carstens authored
    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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    70c9d296
vmem.c 9.43 KB