diff options
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 640152fedcde..54b2ebb20313 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -321,6 +321,8 @@ static inline void rcu_user_hooks_switch(struct task_struct *prev, | |||
321 | * macro rather than an inline function to avoid #include hell. | 321 | * macro rather than an inline function to avoid #include hell. |
322 | */ | 322 | */ |
323 | #ifdef CONFIG_TASKS_RCU | 323 | #ifdef CONFIG_TASKS_RCU |
324 | #define TASKS_RCU(x) x | ||
325 | extern struct srcu_struct tasks_rcu_exit_srcu; | ||
324 | #define rcu_note_voluntary_context_switch(t) \ | 326 | #define rcu_note_voluntary_context_switch(t) \ |
325 | do { \ | 327 | do { \ |
326 | preempt_disable(); /* Exclude synchronize_sched(); */ \ | 328 | preempt_disable(); /* Exclude synchronize_sched(); */ \ |
@@ -329,6 +331,7 @@ static inline void rcu_user_hooks_switch(struct task_struct *prev, | |||
329 | preempt_enable(); \ | 331 | preempt_enable(); \ |
330 | } while (0) | 332 | } while (0) |
331 | #else /* #ifdef CONFIG_TASKS_RCU */ | 333 | #else /* #ifdef CONFIG_TASKS_RCU */ |
334 | #define TASKS_RCU(x) do { } while (0) | ||
332 | #define rcu_note_voluntary_context_switch(t) do { } while (0) | 335 | #define rcu_note_voluntary_context_switch(t) do { } while (0) |
333 | #endif /* #else #ifdef CONFIG_TASKS_RCU */ | 336 | #endif /* #else #ifdef CONFIG_TASKS_RCU */ |
334 | 337 | ||