• Ingo Molnar's avatar
    [PATCH] clean up and unify asm-*/resource.h files · 98a1031e
    Ingo Molnar authored
    This patch does the final consolidation of asm-*/resource.h file, without
    changing any of the rlimit definitions on any architecture.  Primarily it
    removes the __ARCH_RLIMIT_ORDER method and replaces it with a more compact
    and isolated one that allows architectures to define only the offending
    rlimits.
    
    This method has the positive effect that adding a new rlimit can now be
    purely done via changing asm-generic/resource.h alone.  Previously one
    would have to patch 4 other (sparc, sparc64, alpha and mips) resource.h
    files.
    
    The patch also does style unification, whitespace cleanups and
    simplification of resource.h files and cleans up the asm-generic/resource.h
    file as well.  I've added more comments too.
    
    This patch should have no effect on any code on any architecture.  (i.e.
    it's a pure identity patch.)
    
    Tested on x86 and carefully reviewed to make sure that Sparc, Sparc64,
    MIPS and Alpha rlimits are still the same as required by the ABI.
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Acked-by: default avatarChris Wright <chrisw@osdl.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    98a1031e
resource.h 524 Bytes