]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Abstract the dynticks snapshot operation
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 2 Nov 2016 21:12:05 +0000 (14:12 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 16 Jan 2017 23:47:53 +0000 (15:47 -0800)
commit8b2f63ab05eb233b2b396e133889ce3d1d30d944
tree34158316a74053a5051a2277d65615dbb41d4e24
parent6563de9d6f1336157c9861bcd9864e0b47d65f9d
rcu: Abstract the dynticks snapshot operation

This commit is the second step towards full abstraction of all accesses to
the ->dynticks counter, implementing the previously open-coded atomic
add of zero in a new rcu_dynticks_snap() function.  This abstraction will
ease changes o the ->dynticks counter operation.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tree.c
kernel/rcu/tree_exp.h