diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-14 08:38:28 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-14 08:38:28 -0500 |
commit | 0c3c35e148dbc03106038dd25816fb9f3a084d86 (patch) | |
tree | 8b8cc6a027353a0f242f61362b35b0942da61b83 /include/linux/rcutree.h | |
parent | 50d40f187f9182ee8caa1b83f80a0e11e2226baa (diff) | |
parent | 5e08fe570c2dbabb5015c37049eb9a451e55c890 (diff) |
Merge branch 'fix/misc' into topic/misc
Diffstat (limited to 'include/linux/rcutree.h')
-rw-r--r-- | include/linux/rcutree.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index 37682770e9d..9642c6bcb39 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h | |||
@@ -30,10 +30,14 @@ | |||
30 | #ifndef __LINUX_RCUTREE_H | 30 | #ifndef __LINUX_RCUTREE_H |
31 | #define __LINUX_RCUTREE_H | 31 | #define __LINUX_RCUTREE_H |
32 | 32 | ||
33 | struct notifier_block; | ||
34 | |||
33 | extern void rcu_sched_qs(int cpu); | 35 | extern void rcu_sched_qs(int cpu); |
34 | extern void rcu_bh_qs(int cpu); | 36 | extern void rcu_bh_qs(int cpu); |
35 | 37 | extern int rcu_cpu_notify(struct notifier_block *self, | |
38 | unsigned long action, void *hcpu); | ||
36 | extern int rcu_needs_cpu(int cpu); | 39 | extern int rcu_needs_cpu(int cpu); |
40 | extern int rcu_expedited_torture_stats(char *page); | ||
37 | 41 | ||
38 | #ifdef CONFIG_TREE_PREEMPT_RCU | 42 | #ifdef CONFIG_TREE_PREEMPT_RCU |
39 | 43 | ||
@@ -72,11 +76,7 @@ static inline void __rcu_read_unlock_bh(void) | |||
72 | 76 | ||
73 | extern void call_rcu_sched(struct rcu_head *head, | 77 | extern void call_rcu_sched(struct rcu_head *head, |
74 | void (*func)(struct rcu_head *rcu)); | 78 | void (*func)(struct rcu_head *rcu)); |
75 | 79 | extern void synchronize_rcu_expedited(void); | |
76 | static inline void synchronize_rcu_expedited(void) | ||
77 | { | ||
78 | synchronize_sched_expedited(); | ||
79 | } | ||
80 | 80 | ||
81 | static inline void synchronize_rcu_bh_expedited(void) | 81 | static inline void synchronize_rcu_bh_expedited(void) |
82 | { | 82 | { |
@@ -85,16 +85,11 @@ static inline void synchronize_rcu_bh_expedited(void) | |||
85 | 85 | ||
86 | extern void __rcu_init(void); | 86 | extern void __rcu_init(void); |
87 | extern void rcu_check_callbacks(int cpu, int user); | 87 | extern void rcu_check_callbacks(int cpu, int user); |
88 | extern void rcu_restart_cpu(int cpu); | ||
89 | 88 | ||
90 | extern long rcu_batches_completed(void); | 89 | extern long rcu_batches_completed(void); |
91 | extern long rcu_batches_completed_bh(void); | 90 | extern long rcu_batches_completed_bh(void); |
92 | extern long rcu_batches_completed_sched(void); | 91 | extern long rcu_batches_completed_sched(void); |
93 | 92 | ||
94 | static inline void rcu_init_sched(void) | ||
95 | { | ||
96 | } | ||
97 | |||
98 | #ifdef CONFIG_NO_HZ | 93 | #ifdef CONFIG_NO_HZ |
99 | void rcu_enter_nohz(void); | 94 | void rcu_enter_nohz(void); |
100 | void rcu_exit_nohz(void); | 95 | void rcu_exit_nohz(void); |
@@ -107,7 +102,7 @@ static inline void rcu_exit_nohz(void) | |||
107 | } | 102 | } |
108 | #endif /* CONFIG_NO_HZ */ | 103 | #endif /* CONFIG_NO_HZ */ |
109 | 104 | ||
110 | /* A context switch is a grace period for rcutree. */ | 105 | /* A context switch is a grace period for RCU-sched and RCU-bh. */ |
111 | static inline int rcu_blocking_is_gp(void) | 106 | static inline int rcu_blocking_is_gp(void) |
112 | { | 107 | { |
113 | return num_online_cpus() == 1; | 108 | return num_online_cpus() == 1; |