]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: permit discontiguous cpu_possible_mask CPU numbering
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 Apr 2010 23:48:11 +0000 (16:48 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 10 May 2010 18:08:35 +0000 (11:08 -0700)
commitf62b3ffa59d02d4aace4c49de2bf840870709988
tree5e54587e0844d51f6c015f4c489cbf021c9db509
parent9ad39298faf36012a9dda2129c3d20ce5007f6e7
rcu: permit discontiguous cpu_possible_mask CPU numbering

TREE_RCU assumes that CPU numbering is contiguous, but some users need
large holes in the numbering to better map to hardware layout.  This patch
makes TREE_RCU (and TREE_PREEMPT_RCU) tolerate large holes in the CPU
numbering.  However, NR_CPUS must still be greater than the largest
CPU number.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c