• Andy Whitcroft's avatar
    [PATCH] ppc64: topdown support · 4614ad37
    Andy Whitcroft authored
    Recent patches introduced a top down user process address space allocation
    policy; further patches enable this for ppc64.  Although these work
    correctly for normal maps, the topdown algorithm does not take into account
    stringent mixing constraints for small and large pages on this
    architecture.  These patches introduce a ppc64 specific
    arch_get_unused_area_topdown() variant.  The first introduces
    infrastructure to allow replacement of the generic
    arch_get_unused_area_topdown() and the second utilises this infrastructure.
    
    In this patch I have followed the pattern set by the arch_get_unused_area()
    using HAVE_ARCH_UNMAPPED_AREA_TOPDOWN to be consistent.  However, it would
    also be possible to simply have a ppc64_get_unused_area_topdown() in the
    arch/ppc64/mm/mmap.c or to use weak bindings.
    
    This patch:
    
    Allow an architecture to override the default definition of
    arch_get_unmapped_area_topdown().
    Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    4614ad37
mmap.c 50.5 KB