summaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-09-28 10:49:58 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-11-08 11:55:30 -0800
commit42c3533eee88e012e1aa3c4d6d2cc53354130e24 (patch)
tree5ba55eedbda8d257812ee3b2c8778e4c0b3a2e94 /kernel/rcutree.c
parent5f4ee1fa16fa1bee673b75722ca43350a74fba36 (diff)
downloadlinux-42c3533eee88e012e1aa3c4d6d2cc53354130e24.tar.bz2
rcu: Fix tracing formatting
The rcu_state structure's ->completed field is unsigned long, so this commit adjusts show_one_rcugp()'s printf() format to suit. Also add the required ACCESS_ONCE() directives while we are in this function. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index b966d56ebb51..8ed9c481db03 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -68,8 +68,8 @@ static struct lock_class_key rcu_fqs_class[RCU_NUM_LVLS];
.level = { &sname##_state.node[0] }, \
.call = cr, \
.fqs_state = RCU_GP_IDLE, \
- .gpnum = -300, \
- .completed = -300, \
+ .gpnum = 0UL - 300UL, \
+ .completed = 0UL - 300UL, \
.orphan_lock = __RAW_SPIN_LOCK_UNLOCKED(&sname##_state.orphan_lock), \
.orphan_nxttail = &sname##_state.orphan_nxtlist, \
.orphan_donetail = &sname##_state.orphan_donelist, \