]> git.baikalelectronics.ru Git - kernel.git/commit
srcu: Improve rcu_seq grace-period-counter abstraction
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Mar 2017 14:28:14 +0000 (07:28 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 18:38:21 +0000 (11:38 -0700)
commit3f9bf586d5eaa242ce6f874862b57515ac9def6a
tree8a8f567d15a94788150ec924c726ddc324c55ead
parentcae6264c94dfb4cd2ad1eb99f7e2a9b74d54f653
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>
kernel/rcu/rcu.h
kernel/rcu/tree_exp.h