diff options
Diffstat (limited to 'include/linux/rcutree.h')
-rw-r--r-- | include/linux/rcutree.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index c739d90f5e68..a89307717825 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h | |||
@@ -35,14 +35,30 @@ extern void rcu_bh_qs(int cpu); | |||
35 | 35 | ||
36 | extern int rcu_needs_cpu(int cpu); | 36 | extern int rcu_needs_cpu(int cpu); |
37 | 37 | ||
38 | #ifdef CONFIG_TREE_PREEMPT_RCU | ||
39 | |||
40 | extern void __rcu_read_lock(void); | ||
41 | extern void __rcu_read_unlock(void); | ||
42 | extern void exit_rcu(void); | ||
43 | |||
44 | #else /* #ifdef CONFIG_TREE_PREEMPT_RCU */ | ||
45 | |||
38 | static inline void __rcu_read_lock(void) | 46 | static inline void __rcu_read_lock(void) |
39 | { | 47 | { |
40 | preempt_disable(); | 48 | preempt_disable(); |
41 | } | 49 | } |
50 | |||
42 | static inline void __rcu_read_unlock(void) | 51 | static inline void __rcu_read_unlock(void) |
43 | { | 52 | { |
44 | preempt_enable(); | 53 | preempt_enable(); |
45 | } | 54 | } |
55 | |||
56 | static inline void exit_rcu(void) | ||
57 | { | ||
58 | } | ||
59 | |||
60 | #endif /* #else #ifdef CONFIG_TREE_PREEMPT_RCU */ | ||
61 | |||
46 | static inline void __rcu_read_lock_bh(void) | 62 | static inline void __rcu_read_lock_bh(void) |
47 | { | 63 | { |
48 | local_bh_disable(); | 64 | local_bh_disable(); |