• Paul Mundt's avatar
    [PATCH] bitmap: region multiword spanning support · 74373c6a
    Paul Mundt authored
    Add support to the lib/bitmap.c bitmap_*_region() routines
    
    For bitmap regions larger than one word (nbits > BITS_PER_LONG).  This removes
    a BUG_ON() in lib bitmap.
    
    I have an updated store queue API for SH that is currently using this with
    relative success, and at first glance, it seems like this could be useful for
    x86 (arch/i386/kernel/pci-dma.c) as well.  Particularly for anything using
    dma_declare_coherent_memory() on large areas and that attempts to allocate
    large buffers from that space.
    
    Paul Jackson also did some cleanup to this patch.
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    Signed-off-by: default avatarPaul Jackson <pj@sgi.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    74373c6a
bitmap.c 23.3 KB