aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-01-13 18:32:18 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-02-21 12:03:48 -0500
commit13cfcca0e4e2d4cee1d0183c049eb34e54ac976e (patch)
tree2aa48f0db717ae7741602022e4020f22cc3cea7f /kernel/rcutree.h
parent27565d64a4e564e72c22d8c91a3cfcb9442383e8 (diff)
rcu: Set RCU CPU stall times via sysfs
The default CONFIG_RCU_CPU_STALL_TIMEOUT value of 60 seconds has served Linux users well for production use for quite some time. However, for debugging, there will be more than three minutes between subsequent stall-warning messages. This can be an annoyingly long wait if you are trying to work out where the offending infinite loop is hiding. Therefore, this commit provides a rcu_cpu_stall_timeout sysfs parameter that may be adjusted at boot time and at runtime to speed up debugging. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r--kernel/rcutree.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h
index 58c9fc3bc820..0328a537846a 100644
--- a/kernel/rcutree.h
+++ b/kernel/rcutree.h
@@ -314,12 +314,6 @@ struct rcu_data {
314#else 314#else
315#define RCU_STALL_DELAY_DELTA 0 315#define RCU_STALL_DELAY_DELTA 0
316#endif 316#endif
317
318#define RCU_SECONDS_TILL_STALL_CHECK (CONFIG_RCU_CPU_STALL_TIMEOUT * HZ + \
319 RCU_STALL_DELAY_DELTA)
320 /* for rsp->jiffies_stall */
321#define RCU_SECONDS_TILL_STALL_RECHECK (3 * RCU_SECONDS_TILL_STALL_CHECK + 30)
322 /* for rsp->jiffies_stall */
323#define RCU_STALL_RAT_DELAY 2 /* Allow other CPUs time */ 317#define RCU_STALL_RAT_DELAY 2 /* Allow other CPUs time */
324 /* to take at least one */ 318 /* to take at least one */
325 /* scheduling clock irq */ 319 /* scheduling clock irq */