summaryrefslogtreecommitdiff
path: root/kernel/rcu/update.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-03-03 22:49:21 +0300
committerPaul E. McKenney <paulmck@kernel.org>2020-04-27 21:03:51 +0300
commit5873b8a94e5dae04b8e11fc798df512614e6d1e7 (patch)
treef71396ef9084edb9391fb96de3dcc6e89b690ec4 /kernel/rcu/update.c
parent9cf8fc6fabd46d7f4729529f88d627ce85c6e970 (diff)
downloadlinux-5873b8a94e5dae04b8e11fc798df512614e6d1e7.tar.xz
rcu-tasks: Refactor RCU-tasks to allow variants to be added
This commit splits out generic processing from RCU-tasks-specific processing in order to allow additional flavors to be added. It also adds a def_bool TASKS_RCU_GENERIC to enable the common RCU-tasks infrastructure code. This is primarily, but not entirely, a code-movement commit. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/update.c')
-rw-r--r--kernel/rcu/update.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c
index c5799349ff31..30dce20e1644 100644
--- a/kernel/rcu/update.c
+++ b/kernel/rcu/update.c
@@ -584,7 +584,11 @@ late_initcall(rcu_verify_early_boot_tests);
void rcu_early_boot_tests(void) {}
#endif /* CONFIG_PROVE_RCU */
+#ifdef CONFIG_TASKS_RCU_GENERIC
#include "tasks.h"
+#else /* #ifdef CONFIG_TASKS_RCU_GENERIC */
+static inline void rcu_tasks_bootup_oddness(void) {}
+#endif /* #else #ifdef CONFIG_TASKS_RCU_GENERIC */
#ifndef CONFIG_TINY_RCU