diff options
Diffstat (limited to 'include/linux/rcutiny.h')
| -rw-r--r-- | include/linux/rcutiny.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index 52b3e0281fd0..00b7a5e493d2 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h | |||
| @@ -27,9 +27,23 @@ | |||
| 27 | 27 | ||
| 28 | #include <linux/cache.h> | 28 | #include <linux/cache.h> |
| 29 | 29 | ||
| 30 | #ifdef CONFIG_RCU_BOOST | ||
| 30 | static inline void rcu_init(void) | 31 | static inline void rcu_init(void) |
| 31 | { | 32 | { |
| 32 | } | 33 | } |
| 34 | #else /* #ifdef CONFIG_RCU_BOOST */ | ||
| 35 | void rcu_init(void); | ||
| 36 | #endif /* #else #ifdef CONFIG_RCU_BOOST */ | ||
| 37 | |||
| 38 | static inline void rcu_barrier_bh(void) | ||
| 39 | { | ||
| 40 | wait_rcu_gp(call_rcu_bh); | ||
| 41 | } | ||
| 42 | |||
| 43 | static inline void rcu_barrier_sched(void) | ||
| 44 | { | ||
| 45 | wait_rcu_gp(call_rcu_sched); | ||
| 46 | } | ||
| 33 | 47 | ||
| 34 | #ifdef CONFIG_TINY_RCU | 48 | #ifdef CONFIG_TINY_RCU |
| 35 | 49 | ||
| @@ -45,9 +59,13 @@ static inline void rcu_barrier(void) | |||
| 45 | 59 | ||
| 46 | #else /* #ifdef CONFIG_TINY_RCU */ | 60 | #else /* #ifdef CONFIG_TINY_RCU */ |
| 47 | 61 | ||
| 48 | void rcu_barrier(void); | ||
| 49 | void synchronize_rcu_expedited(void); | 62 | void synchronize_rcu_expedited(void); |
| 50 | 63 | ||
| 64 | static inline void rcu_barrier(void) | ||
| 65 | { | ||
| 66 | wait_rcu_gp(call_rcu); | ||
| 67 | } | ||
| 68 | |||
| 51 | #endif /* #else #ifdef CONFIG_TINY_RCU */ | 69 | #endif /* #else #ifdef CONFIG_TINY_RCU */ |
| 52 | 70 | ||
| 53 | static inline void synchronize_rcu_bh(void) | 71 | static inline void synchronize_rcu_bh(void) |
