• Andi Kleen's avatar
    [PATCH] Use numa policy API for boot time policy · 3bdafaa1
    Andi Kleen authored
    Suggested by Manfred Spraul.
    
    __get_free_pages had a hack to do node interleaving allocation at boot
    time.  This patch sets an interleave process policy using the NUMA API for
    init and the idle threads instead.  Before entering the user space init the
    policy is reset to default again.  Result is the same.
    
    Advantage is less code and removing of a check from a fast path.
    
    Removes more code than it adds.
    
    I verified that the memory distribution after boot is roughly the same.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    3bdafaa1
page_alloc.c 47.9 KB