]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
softlock: fix false panic which can occur if softlockup_thresh is reduced
authorMandeep Singh Baines <msb@google.com>
Tue, 13 Jan 2009 05:15:17 +0000 (21:15 -0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 14 Jan 2009 10:48:07 +0000 (11:48 +0100)
commitbaf48f6577e581a9adb8fe849dc80e24b21d171d
tree279e54b7374a9c52025ded4f9bb718e5382b0340
parente4fa4c97016037620f9dc8bafe03e1086b665b4c
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>
include/linux/sched.h
kernel/softlockup.c
kernel/sysctl.c