]> git.karo-electronics.de Git - karo-tx-linux.git/commit
srcu: Add DEFINE_SRCU()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Fri, 12 Oct 2012 17:14:16 +0000 (01:14 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 23 Oct 2012 21:54:42 +0000 (14:54 -0700)
commitcbdb4d8629c117e67c14f62ae7bb87b73c9e6354
tree77f0f5f41a317a82044170ddce8b22f6eb4d5af5
parentf2ebfbc991044fd5b89d4529741d7500feb37fbd
srcu: Add DEFINE_SRCU()

In old days, we had two different API sets for dynamic-allocated per-CPU
data and DEFINE_PER_CPU()-defined per_cpu data, and because SRCU used
dynamic-allocated per-CPU data, its srcu_struct structures cannot be
declared statically.  This commit therefore introduces DEFINE_SRCU()
and DEFINE_STATIC_SRCU() to allow statically declared SRCU structures,
using the new static per-CPU interfaces.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
[ paulmck: Updated for __DELAYED_WORK_INITIALIZER() added argument. ]
include/linux/srcu.h