aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r--kernel/rcutree_plugin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
index dbcea6b93aea..adb6e666c6f4 100644
--- a/kernel/rcutree_plugin.h
+++ b/kernel/rcutree_plugin.h
@@ -1337,6 +1337,15 @@ static void invoke_rcu_callbacks_kthread(void)
1337} 1337}
1338 1338
1339/* 1339/*
1340 * Is the current CPU running the RCU-callbacks kthread?
1341 * Caller must have preemption disabled.
1342 */
1343static bool rcu_is_callbacks_kthread(void)
1344{
1345 return __get_cpu_var(rcu_cpu_kthread_task) == current;
1346}
1347
1348/*
1340 * Set the affinity of the boost kthread. The CPU-hotplug locks are 1349 * Set the affinity of the boost kthread. The CPU-hotplug locks are
1341 * held, so no one should be messing with the existence of the boost 1350 * held, so no one should be messing with the existence of the boost
1342 * kthread. 1351 * kthread.
@@ -1780,6 +1789,11 @@ static void invoke_rcu_callbacks_kthread(void)
1780 WARN_ON_ONCE(1); 1789 WARN_ON_ONCE(1);
1781} 1790}
1782 1791
1792static bool rcu_is_callbacks_kthread(void)
1793{
1794 return false;
1795}
1796
1783static void rcu_preempt_boost_start_gp(struct rcu_node *rnp) 1797static void rcu_preempt_boost_start_gp(struct rcu_node *rnp)
1784{ 1798{
1785} 1799}