From: Lai Jiangshan Date: Fri, 12 Oct 2012 17:14:16 +0000 (+0800) Subject: srcu: Add DEFINE_SRCU() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~79^2^2~4^4~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55c6659afaa6fd79a3b5a7c2b42bb87e0c11209d;p=pandora-kernel.git 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 Signed-off-by: Paul E. McKenney [ paulmck: Updated for __DELAYED_WORK_INITIALIZER() added argument, fixed whitespace issue. ] --- Reading git-diff-tree failed