Skip to content

Commit

Permalink
srcu: Allow a second bit in rcu_seq for SRCU state
Browse files Browse the repository at this point in the history
This commit increases the number of reserved bits at the bottom of an
rcu_seq grace-period counter from one to two, as will be needed to
accommodate SRCU's three-state grace periods.

Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmck committed Apr 18, 2017
1 parent 031aeee commit f1ec57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcu/rcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* Grace-period counter management.
*/

#define RCU_SEQ_CTR_SHIFT 1
#define RCU_SEQ_CTR_SHIFT 2
#define RCU_SEQ_STATE_MASK ((1 << RCU_SEQ_CTR_SHIFT) - 1)

/*
Expand Down

0 comments on commit f1ec57a

Please sign in to comment.