aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorMandeep Singh Baines <msb@google.com>2009-01-13 00:15:17 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-14 05:48:07 -0500
commitbaf48f6577e581a9adb8fe849dc80e24b21d171d (patch)
tree279e54b7374a9c52025ded4f9bb718e5382b0340 /kernel/sysctl.c
parente4fa4c97016037620f9dc8bafe03e1086b665b4c (diff)
softlock: fix false panic which can occur if softlockup_thresh is reduced
At run-time, if softlockup_thresh is changed to a much lower value, touch_timestamp is likely to be much older than the new softlock_thresh. This will cause a false softlockup to be detected. If softlockup_panic is enabled, the system will panic. The fix is to touch all watchdogs before changing softlockup_thresh. Signed-off-by: Mandeep Singh Baines <msb@google.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 89d74436318c..596dc31a7116 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -800,7 +800,7 @@ static struct ctl_table kern_table[] = {
800 .data = &softlockup_thresh, 800 .data = &softlockup_thresh,
801 .maxlen = sizeof(int), 801 .maxlen = sizeof(int),
802 .mode = 0644, 802 .mode = 0644,
803 .proc_handler = &proc_dointvec_minmax, 803 .proc_handler = &proc_dosoftlockup_thresh,
804 .strategy = &sysctl_intvec, 804 .strategy = &sysctl_intvec,
805 .extra1 = &neg_one, 805 .extra1 = &neg_one,
806 .extra2 = &sixty, 806 .extra2 = &sixty,