diff options
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 12aa13e13150..d32c14de270e 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -53,7 +53,11 @@ struct rcu_head { | |||
53 | void (*func)(struct rcu_head *head); | 53 | void (*func)(struct rcu_head *head); |
54 | }; | 54 | }; |
55 | 55 | ||
56 | #ifdef CONFIG_CLASSIC_RCU | ||
56 | #include <linux/rcuclassic.h> | 57 | #include <linux/rcuclassic.h> |
58 | #else /* #ifdef CONFIG_CLASSIC_RCU */ | ||
59 | #include <linux/rcupreempt.h> | ||
60 | #endif /* #else #ifdef CONFIG_CLASSIC_RCU */ | ||
57 | 61 | ||
58 | #define RCU_HEAD_INIT { .next = NULL, .func = NULL } | 62 | #define RCU_HEAD_INIT { .next = NULL, .func = NULL } |
59 | #define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT | 63 | #define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT |
@@ -231,13 +235,12 @@ extern void call_rcu_bh(struct rcu_head *head, | |||
231 | /* Exported common interfaces */ | 235 | /* Exported common interfaces */ |
232 | extern void synchronize_rcu(void); | 236 | extern void synchronize_rcu(void); |
233 | extern void rcu_barrier(void); | 237 | extern void rcu_barrier(void); |
238 | extern long rcu_batches_completed(void); | ||
239 | extern long rcu_batches_completed_bh(void); | ||
234 | 240 | ||
235 | /* Internal to kernel */ | 241 | /* Internal to kernel */ |
236 | extern void rcu_init(void); | 242 | extern void rcu_init(void); |
237 | extern void rcu_check_callbacks(int cpu, int user); | 243 | extern int rcu_needs_cpu(int cpu); |
238 | |||
239 | extern long rcu_batches_completed(void); | ||
240 | extern long rcu_batches_completed_bh(void); | ||
241 | 244 | ||
242 | #endif /* __KERNEL__ */ | 245 | #endif /* __KERNEL__ */ |
243 | #endif /* __LINUX_RCUPDATE_H */ | 246 | #endif /* __LINUX_RCUPDATE_H */ |