aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rcutree.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rcutree.h')
-rw-r--r--include/linux/rcutree.h16
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
36extern int rcu_needs_cpu(int cpu); 36extern int rcu_needs_cpu(int cpu);
37 37
38#ifdef CONFIG_TREE_PREEMPT_RCU
39
40extern void __rcu_read_lock(void);
41extern void __rcu_read_unlock(void);
42extern void exit_rcu(void);
43
44#else /* #ifdef CONFIG_TREE_PREEMPT_RCU */
45
38static inline void __rcu_read_lock(void) 46static inline void __rcu_read_lock(void)
39{ 47{
40 preempt_disable(); 48 preempt_disable();
41} 49}
50
42static inline void __rcu_read_unlock(void) 51static inline void __rcu_read_unlock(void)
43{ 52{
44 preempt_enable(); 53 preempt_enable();
45} 54}
55
56static inline void exit_rcu(void)
57{
58}
59
60#endif /* #else #ifdef CONFIG_TREE_PREEMPT_RCU */
61
46static inline void __rcu_read_lock_bh(void) 62static inline void __rcu_read_lock_bh(void)
47{ 63{
48 local_bh_disable(); 64 local_bh_disable();