summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-03-21 10:35:57 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-18 11:38:21 -0700
commitf1ec57a462314f3d1cd0c9c8a04979228aa9d38c (patch)
tree1b4e665154ffa4d2f7106c67d40e89db699e65fc /kernel
parent031aeee000e895247eafa4233c2d193dd39d4ea2 (diff)
downloadop-kernel-dev-f1ec57a462314f3d1cd0c9c8a04979228aa9d38c.zip
op-kernel-dev-f1ec57a462314f3d1cd0c9c8a04979228aa9d38c.tar.gz
srcu: Allow a second bit in rcu_seq for SRCU state
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 <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/rcu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
index c62df93..87a0ac9 100644
--- a/kernel/rcu/rcu.h
+++ b/kernel/rcu/rcu.h
@@ -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)
/*
OpenPOWER on IntegriCloud