|
@@ -565,6 +565,22 @@ static int rcu_panic(struct notifier_block *this, unsigned long ev, void *ptr)
|
|
|
return NOTIFY_DONE;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * rcu_cpu_stall_reset - prevent further stall warnings in current grace period
|
|
|
+ *
|
|
|
+ * Set the stall-warning timeout way off into the future, thus preventing
|
|
|
+ * any RCU CPU stall-warning messages from appearing in the current set of
|
|
|
+ * RCU grace periods.
|
|
|
+ *
|
|
|
+ * The caller must disable hard irqs.
|
|
|
+ */
|
|
|
+void rcu_cpu_stall_reset(void)
|
|
|
+{
|
|
|
+ rcu_sched_state.jiffies_stall = jiffies + ULONG_MAX / 2;
|
|
|
+ rcu_bh_state.jiffies_stall = jiffies + ULONG_MAX / 2;
|
|
|
+ rcu_preempt_stall_reset();
|
|
|
+}
|
|
|
+
|
|
|
static struct notifier_block rcu_panic_block = {
|
|
|
.notifier_call = rcu_panic,
|
|
|
};
|
|
@@ -584,6 +600,10 @@ static void check_cpu_stall(struct rcu_state *rsp, struct rcu_data *rdp)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+void rcu_cpu_stall_reset(void)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
static void __init check_cpu_stall_init(void)
|
|
|
{
|
|
|
}
|