rcu/nocb: Turn enabled/offload states into a common flag
[linux-2.6-microblaze.git] / include / linux / rcu_segcblist.h
index 6c01f09..4714b02 100644 (file)
@@ -63,6 +63,9 @@ struct rcu_cblist {
 #define RCU_NEXT_TAIL          3
 #define RCU_CBLIST_NSEGS       4
 
+#define SEGCBLIST_ENABLED      BIT(0)
+#define SEGCBLIST_OFFLOADED    BIT(1)
+
 struct rcu_segcblist {
        struct rcu_head *head;
        struct rcu_head **tails[RCU_CBLIST_NSEGS];
@@ -73,8 +76,7 @@ struct rcu_segcblist {
        long len;
 #endif
        long seglen[RCU_CBLIST_NSEGS];
-       u8 enabled;
-       u8 offloaded;
+       u8 flags;
 };
 
 #define RCU_SEGCBLIST_INITIALIZER(n) \