summaryrefslogtreecommitdiffstats
path: root/include/linux/rcutree.h
diff options
context:
space:
mode:
authorPaul E. McKenney2018-07-10 23:00:14 +0200
committerPaul E. McKenney2018-08-31 01:03:37 +0200
commit395a2f097ebdddf2bfa286b6119f1b231025c2f1 (patch)
tree6c4852de5a7125c22cbf0631bf288e64862b52af /include/linux/rcutree.h
parentrcu: Remove !PREEMPT code from rcu_note_voluntary_context_switch() (diff)
downloadkernel-qcow2-linux-395a2f097ebdddf2bfa286b6119f1b231025c2f1.tar.gz
kernel-qcow2-linux-395a2f097ebdddf2bfa286b6119f1b231025c2f1.tar.xz
kernel-qcow2-linux-395a2f097ebdddf2bfa286b6119f1b231025c2f1.zip
rcu: Define rcu_all_qs() only in !PREEMPT builds
Now that rcu_all_qs() is used only in !PREEMPT builds, move it to tree_plugin.h so that it is defined only in those builds. This in turn means that rcu_momentary_dyntick_idle() is only used in !PREEMPT builds, but it is simply marked __maybe_unused in order to keep it near the rest of the dyntick-idle code. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/rcutree.h')
-rw-r--r--include/linux/rcutree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h
index d09a9abe9440..7f83179177d1 100644
--- a/include/linux/rcutree.h
+++ b/include/linux/rcutree.h
@@ -66,7 +66,9 @@ void rcu_scheduler_starting(void);
extern int rcu_scheduler_active __read_mostly;
void rcu_end_inkernel_boot(void);
bool rcu_is_watching(void);
+#ifndef CONFIG_PREEMPT
void rcu_all_qs(void);
+#endif
/* RCUtree hotplug events */
int rcutree_prepare_cpu(unsigned int cpu);