|
40 | 40 | #include <linux/cpumask.h> |
41 | 41 | #include <linux/seqlock.h> |
42 | 42 | #include <linux/lockdep.h> |
43 | | -#include <linux/completion.h> |
44 | 43 | #include <linux/debugobjects.h> |
45 | 44 | #include <linux/bug.h> |
46 | 45 | #include <linux/compiler.h> |
@@ -226,45 +225,6 @@ void call_rcu_sched(struct rcu_head *head, |
226 | 225 |
|
227 | 226 | void synchronize_sched(void); |
228 | 227 |
|
229 | | -/* |
230 | | - * Structure allowing asynchronous waiting on RCU. |
231 | | - */ |
232 | | -struct rcu_synchronize { |
233 | | - struct rcu_head head; |
234 | | - struct completion completion; |
235 | | -}; |
236 | | -void wakeme_after_rcu(struct rcu_head *head); |
237 | | - |
238 | | -void __wait_rcu_gp(bool checktiny, int n, call_rcu_func_t *crcu_array, |
239 | | - struct rcu_synchronize *rs_array); |
240 | | - |
241 | | -#define _wait_rcu_gp(checktiny, ...) \ |
242 | | -do { \ |
243 | | - call_rcu_func_t __crcu_array[] = { __VA_ARGS__ }; \ |
244 | | - struct rcu_synchronize __rs_array[ARRAY_SIZE(__crcu_array)]; \ |
245 | | - __wait_rcu_gp(checktiny, ARRAY_SIZE(__crcu_array), \ |
246 | | - __crcu_array, __rs_array); \ |
247 | | -} while (0) |
248 | | - |
249 | | -#define wait_rcu_gp(...) _wait_rcu_gp(false, __VA_ARGS__) |
250 | | - |
251 | | -/** |
252 | | - * synchronize_rcu_mult - Wait concurrently for multiple grace periods |
253 | | - * @...: List of call_rcu() functions for the flavors to wait on. |
254 | | - * |
255 | | - * This macro waits concurrently for multiple flavors of RCU grace periods. |
256 | | - * For example, synchronize_rcu_mult(call_rcu, call_rcu_bh) would wait |
257 | | - * on concurrent RCU and RCU-bh grace periods. Waiting on a give SRCU |
258 | | - * domain requires you to write a wrapper function for that SRCU domain's |
259 | | - * call_srcu() function, supplying the corresponding srcu_struct. |
260 | | - * |
261 | | - * If Tiny RCU, tell _wait_rcu_gp() not to bother waiting for RCU |
262 | | - * or RCU-bh, given that anywhere synchronize_rcu_mult() can be called |
263 | | - * is automatically a grace period. |
264 | | - */ |
265 | | -#define synchronize_rcu_mult(...) \ |
266 | | - _wait_rcu_gp(IS_ENABLED(CONFIG_TINY_RCU), __VA_ARGS__) |
267 | | - |
268 | 228 | /** |
269 | 229 | * call_rcu_tasks() - Queue an RCU for invocation task-based grace period |
270 | 230 | * @head: structure to be used for queueing the RCU updates. |
|
0 commit comments