• Andrew Morton's avatar
    [PATCH] cpumask: rewrite cpumask.h - single bitmap based implementation · f3344dc3
    Andrew Morton authored
    From: Paul Jackson <pj@sgi.com>
    
    Major rewrite of cpumask to use a single implementation, as a struct-wrapped
    bitmap.
    
    This patch leaves some 26 include/asm-*/cpumask*.h header files orphaned - to
    be removed next patch.
    
    Some nine cpumask macros for const variants and to coerce and promote between
    an unsigned long and a cpumask are obsolete.  Simple emulation wrappers are
    provided in this patch for these obsolete macros, which can be removed once
    each of the 3 archs (i386, ppc64, x86_64) using them are recoded in follow-on
    patches to not need them.
    
    The CPU_MASK_ALL macro now avoids leaving possible garbage one bits in any
    unused portion of the high word.
    
    An inproved comment lists all available operators, for convenient browsing.
    
    From: Mikael Pettersson <mikpe@csd.uu.se>
    
      2.6.7-rc3-mm1 changed CPU_MASK_NONE into something that isn't a valid
      rvalue (it only works inside struct initializers).  This caused compile-time
      errors in perfctr in UP x86 builds.
    
    From: Arnd Bergmann <arnd@arndb.de>
    
      cpumask-5-10-rewrite-cpumaskh-single-bitmap-based from 2.6.7-rc3-mm1
      causes include2/asm/smp.h:54:1: warning: "cpu_online" redefined
    Signed-off-by: default avatarPaul Jackson <pj@sgi.com>
    Signed-off-by: default avatarMikael Pettersson <mikpe@csd.uu.se>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    f3344dc3
rcupdate.c 10.7 KB