diff options
author | Liu, Changcheng <changcheng.liu@intel.com> | 2018-01-16 04:05:14 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-02-20 19:10:31 -0500 |
commit | 65518db86b9ed1180b013c8a34c73c6ff7275886 (patch) | |
tree | 8c203d79898f74f6ab858b805eaa8b0a834cf8f2 | |
parent | bfbd767d4dba7fb41df0d356eecb7bbd99d0a7ee (diff) |
rcu: Remove redundant nxttail index macro define
RCU's nxttail has been optimized to be a rcu_segcblist, which is
a multi-tailed linked list with macros defined for the indexes for
each tail. The indexes have been defined in linux/rcu_segcblist.h,
so this commit removes the redundant definitions in kernel/rcu/tree.h.
Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcu/tree.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 2edd56397b00..f491ab4f2e8e 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h | |||
@@ -178,13 +178,6 @@ union rcu_noqs { | |||
178 | u16 s; /* Set of bits, aggregate OR here. */ | 178 | u16 s; /* Set of bits, aggregate OR here. */ |
179 | }; | 179 | }; |
180 | 180 | ||
181 | /* Index values for nxttail array in struct rcu_data. */ | ||
182 | #define RCU_DONE_TAIL 0 /* Also RCU_WAIT head. */ | ||
183 | #define RCU_WAIT_TAIL 1 /* Also RCU_NEXT_READY head. */ | ||
184 | #define RCU_NEXT_READY_TAIL 2 /* Also RCU_NEXT head. */ | ||
185 | #define RCU_NEXT_TAIL 3 | ||
186 | #define RCU_NEXT_SIZE 4 | ||
187 | |||
188 | /* Per-CPU data for read-copy update. */ | 181 | /* Per-CPU data for read-copy update. */ |
189 | struct rcu_data { | 182 | struct rcu_data { |
190 | /* 1) quiescent-state and grace-period handling : */ | 183 | /* 1) quiescent-state and grace-period handling : */ |