summaryrefslogtreecommitdiff
path: root/kernel/rcu/tree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2022-05-11 21:49:35 +0300
committerPaul E. McKenney <paulmck@kernel.org>2022-05-11 21:49:35 +0300
commitce13389053a347aa9f8ffbfda2238352536e15c9 (patch)
tree1bdfa4c0aeb2038dcee1a7802d2d693359e8aeb4 /kernel/rcu/tree.h
parentbe05ee54378d451e1d60196921566d6087f3079f (diff)
parent9621fbee44df940e2e1b94b0676460a538dffefa (diff)
downloadlinux-ce13389053a347aa9f8ffbfda2238352536e15c9.tar.xz
Merge branch 'exp.2022.05.11a' into HEAD
exp.2022.05.11a: Expedited-grace-period latency-reduction updates.
Diffstat (limited to 'kernel/rcu/tree.h')
-rw-r--r--kernel/rcu/tree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 8aa5bf74e796..2ccf5845957d 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -10,6 +10,7 @@
*/
#include <linux/cache.h>
+#include <linux/kthread.h>
#include <linux/spinlock.h>
#include <linux/rtmutex.h>
#include <linux/threads.h>
@@ -23,7 +24,11 @@
/* Communicate arguments to a workqueue handler. */
struct rcu_exp_work {
unsigned long rew_s;
+#ifdef CONFIG_RCU_EXP_KTHREAD
+ struct kthread_work rew_work;
+#else
struct work_struct rew_work;
+#endif /* CONFIG_RCU_EXP_KTHREAD */
};
/* RCU's kthread states for tracing. */