diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-03-21 15:28:14 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-18 20:38:21 +0200 |
commit | 031aeee000e895247eafa4233c2d193dd39d4ea2 (patch) | |
tree | 8a8f567d15a94788150ec924c726ddc324c55ead /kernel/time/posix-cpu-timers.c | |
parent | srcu: Fix bogus try_check_zero() comment (diff) | |
download | linux-031aeee000e895247eafa4233c2d193dd39d4ea2.tar.xz linux-031aeee000e895247eafa4233c2d193dd39d4ea2.zip |
srcu: Improve rcu_seq grace-period-counter abstraction
The expedited grace-period code contains several open-coded shifts
know the format of an rcu_seq grace-period counter, which is not
particularly good style. This commit therefore creates a new
rcu_seq_ctr() function that extracts the counter portion of the
counter, and an rcu_seq_state() function that extracts the low-order
state bit. This commit prepares for SRCU callback parallelization,
which will require two state bits.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/time/posix-cpu-timers.c')
0 files changed, 0 insertions, 0 deletions