• Dave Hansen's avatar
    [PATCH] x86: remove-free_all_bootmem() #define · b525cd44
    Dave Hansen authored
    in arch/i386/mm/init.c, there's a #define for __free_all_bootmem():
    
    #ifndef CONFIG_DISCONTIGMEM
    #define __free_all_bootmem() free_all_bootmem()
    #else
    #define __free_all_bootmem() free_all_bootmem_node(NODE_DATA(0))
    #endif /* !CONFIG_DISCONTIGMEM */
    
    However, both of those functions end up eventually calling the same
    thing:
    
    	free_all_bootmem_core(NODE_DATA(0))
    
    This might have once been a placeholder for a more complex bootmem
    init call, but that never happened.  So, kill off the DISCONTIG
    version, and just call free_all_bootmem() directly in both cases.
    Signed-off-by: default avatarDave Hansen <haveblue@us.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    b525cd44
init.c 17 KB