|
@@ -1336,6 +1336,15 @@ static void invoke_rcu_callbacks_kthread(void)
|
|
|
local_irq_restore(flags);
|
|
|
}
|
|
|
|
|
|
+/*
|
|
|
+ * Is the current CPU running the RCU-callbacks kthread?
|
|
|
+ * Caller must have preemption disabled.
|
|
|
+ */
|
|
|
+static bool rcu_is_callbacks_kthread(void)
|
|
|
+{
|
|
|
+ return __get_cpu_var(rcu_cpu_kthread_task) == current;
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* Set the affinity of the boost kthread. The CPU-hotplug locks are
|
|
|
* held, so no one should be messing with the existence of the boost
|
|
@@ -1780,6 +1789,11 @@ static void invoke_rcu_callbacks_kthread(void)
|
|
|
WARN_ON_ONCE(1);
|
|
|
}
|
|
|
|
|
|
+static bool rcu_is_callbacks_kthread(void)
|
|
|
+{
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
static void rcu_preempt_boost_start_gp(struct rcu_node *rnp)
|
|
|
{
|
|
|
}
|