diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/rcupdate.h | 12 | ||||
-rw-r--r-- | include/linux/rcutiny.h | 11 | ||||
-rw-r--r-- | include/linux/rcutree.h | 4 |
3 files changed, 14 insertions, 13 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 2f1bc42a3b82..24440f4bf476 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -52,11 +52,6 @@ struct rcu_head { | |||
52 | }; | 52 | }; |
53 | 53 | ||
54 | /* Exported common interfaces */ | 54 | /* Exported common interfaces */ |
55 | #ifdef CONFIG_TREE_PREEMPT_RCU | ||
56 | extern void synchronize_rcu(void); | ||
57 | #else /* #ifdef CONFIG_TREE_PREEMPT_RCU */ | ||
58 | #define synchronize_rcu synchronize_sched | ||
59 | #endif /* #else #ifdef CONFIG_TREE_PREEMPT_RCU */ | ||
60 | extern void synchronize_rcu_bh(void); | 55 | extern void synchronize_rcu_bh(void); |
61 | extern void synchronize_sched(void); | 56 | extern void synchronize_sched(void); |
62 | extern void rcu_barrier(void); | 57 | extern void rcu_barrier(void); |
@@ -67,13 +62,6 @@ extern int sched_expedited_torture_stats(char *page); | |||
67 | 62 | ||
68 | /* Internal to kernel */ | 63 | /* Internal to kernel */ |
69 | extern void rcu_init(void); | 64 | extern void rcu_init(void); |
70 | extern void rcu_scheduler_starting(void); | ||
71 | #ifndef CONFIG_TINY_RCU | ||
72 | extern int rcu_needs_cpu(int cpu); | ||
73 | #else | ||
74 | static inline int rcu_needs_cpu(int cpu) { return 0; } | ||
75 | #endif | ||
76 | extern int rcu_scheduler_active; | ||
77 | 65 | ||
78 | #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) | 66 | #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) |
79 | #include <linux/rcutree.h> | 67 | #include <linux/rcutree.h> |
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index a3b6272af2dd..c4ba9a78721e 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h | |||
@@ -39,6 +39,11 @@ void rcu_bh_qs(int cpu); | |||
39 | #define rcu_init_sched() do { } while (0) | 39 | #define rcu_init_sched() do { } while (0) |
40 | extern void rcu_check_callbacks(int cpu, int user); | 40 | extern void rcu_check_callbacks(int cpu, int user); |
41 | 41 | ||
42 | static inline int rcu_needs_cpu(int cpu) | ||
43 | { | ||
44 | return 0; | ||
45 | } | ||
46 | |||
42 | /* | 47 | /* |
43 | * Return the number of grace periods. | 48 | * Return the number of grace periods. |
44 | */ | 49 | */ |
@@ -57,6 +62,8 @@ static inline long rcu_batches_completed_bh(void) | |||
57 | 62 | ||
58 | extern int rcu_expedited_torture_stats(char *page); | 63 | extern int rcu_expedited_torture_stats(char *page); |
59 | 64 | ||
65 | #define synchronize_rcu synchronize_sched | ||
66 | |||
60 | static inline void synchronize_rcu_expedited(void) | 67 | static inline void synchronize_rcu_expedited(void) |
61 | { | 68 | { |
62 | synchronize_sched(); | 69 | synchronize_sched(); |
@@ -86,6 +93,10 @@ static inline void rcu_exit_nohz(void) | |||
86 | 93 | ||
87 | #endif /* #else #ifdef CONFIG_NO_HZ */ | 94 | #endif /* #else #ifdef CONFIG_NO_HZ */ |
88 | 95 | ||
96 | static inline void rcu_scheduler_starting(void) | ||
97 | { | ||
98 | } | ||
99 | |||
89 | static inline void exit_rcu(void) | 100 | static inline void exit_rcu(void) |
90 | { | 101 | { |
91 | } | 102 | } |
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index 111a65257350..c93eee5911b0 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h | |||
@@ -35,12 +35,14 @@ struct notifier_block; | |||
35 | extern void rcu_sched_qs(int cpu); | 35 | extern void rcu_sched_qs(int cpu); |
36 | extern void rcu_bh_qs(int cpu); | 36 | extern void rcu_bh_qs(int cpu); |
37 | extern int rcu_needs_cpu(int cpu); | 37 | extern int rcu_needs_cpu(int cpu); |
38 | extern void rcu_scheduler_starting(void); | ||
38 | extern int rcu_expedited_torture_stats(char *page); | 39 | extern int rcu_expedited_torture_stats(char *page); |
39 | 40 | ||
40 | #ifdef CONFIG_TREE_PREEMPT_RCU | 41 | #ifdef CONFIG_TREE_PREEMPT_RCU |
41 | 42 | ||
42 | extern void __rcu_read_lock(void); | 43 | extern void __rcu_read_lock(void); |
43 | extern void __rcu_read_unlock(void); | 44 | extern void __rcu_read_unlock(void); |
45 | extern void synchronize_rcu(void); | ||
44 | extern void exit_rcu(void); | 46 | extern void exit_rcu(void); |
45 | 47 | ||
46 | #else /* #ifdef CONFIG_TREE_PREEMPT_RCU */ | 48 | #else /* #ifdef CONFIG_TREE_PREEMPT_RCU */ |
@@ -55,7 +57,7 @@ static inline void __rcu_read_unlock(void) | |||
55 | preempt_enable(); | 57 | preempt_enable(); |
56 | } | 58 | } |
57 | 59 | ||
58 | #define __synchronize_sched() synchronize_rcu() | 60 | #define synchronize_rcu synchronize_sched |
59 | 61 | ||
60 | static inline void exit_rcu(void) | 62 | static inline void exit_rcu(void) |
61 | { | 63 | { |