diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-03-30 18:46:01 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-10 14:08:32 -0400 |
commit | da848c47bc6e873a54a445ea1960423a495b6b32 (patch) | |
tree | 4c0eaef1a5990585730f00caca0cfcba21fe9f9f /include/linux/rcutiny.h | |
parent | 32c141a0a1dfa29e0a07d78bec0c0919fc4b9f88 (diff) |
rcu: shrink rcutiny by making synchronize_rcu_bh() be inline
Because synchronize_rcu_bh() is identical to synchronize_sched(),
make the former a static inline invoking the latter, saving the
overhead of an EXPORT_SYMBOL_GPL() and the duplicate code.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/rcutiny.h')
-rw-r--r-- | include/linux/rcutiny.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index a5195875480..bbeb55b7709 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h | |||
@@ -74,7 +74,17 @@ static inline void rcu_sched_force_quiescent_state(void) | |||
74 | { | 74 | { |
75 | } | 75 | } |
76 | 76 | ||
77 | #define synchronize_rcu synchronize_sched | 77 | extern void synchronize_sched(void); |
78 | |||
79 | static inline void synchronize_rcu(void) | ||
80 | { | ||
81 | synchronize_sched(); | ||
82 | } | ||
83 | |||
84 | static inline void synchronize_rcu_bh(void) | ||
85 | { | ||
86 | synchronize_sched(); | ||
87 | } | ||
78 | 88 | ||
79 | static inline void synchronize_rcu_expedited(void) | 89 | static inline void synchronize_rcu_expedited(void) |
80 | { | 90 | { |