diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-06-18 20:55:39 +0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-09-29 08:38:20 +0400 |
commit | 965a002b4f1a458c5dcb334ec29f48a0046faa25 (patch) | |
tree | 9aa3847fd44b322a73631758e7337632e5e3a32d /include/linux/rcutiny.h | |
parent | 385680a9487d2f85382ad6d74e2a15837e47bfd9 (diff) | |
download | linux-965a002b4f1a458c5dcb334ec29f48a0046faa25.tar.xz |
rcu: Make TINY_RCU also use softirq for RCU_BOOST=n
This patch #ifdefs TINY_RCU kthreads out of the kernel unless RCU_BOOST=y,
thus eliminating context-switch overhead if RCU priority boosting has
not been configured.
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index 4eab233a00cd..00b7a5e493d2 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h @@ -27,9 +27,13 @@ #include <linux/cache.h> +#ifdef CONFIG_RCU_BOOST static inline void rcu_init(void) { } +#else /* #ifdef CONFIG_RCU_BOOST */ +void rcu_init(void); +#endif /* #else #ifdef CONFIG_RCU_BOOST */ static inline void rcu_barrier_bh(void) { |