diff options
author | Josh Hunt <johunt@akamai.com> | 2014-08-08 17:22:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:24 -0400 |
commit | 69361eef9056b0babb507798c2135ad1572f0ef7 (patch) | |
tree | 59a63cc2f670926a7b9394533bbc9d3e379fc258 /kernel/watchdog.c | |
parent | 1da85fdff55da539fbe9c270689a7bcedead1cdd (diff) |
panic: add TAINT_SOFTLOCKUP
This taint flag will be set if the system has ever entered a softlockup
state. Similar to TAINT_WARN it is useful to know whether or not the
system has been in a softlockup state when debugging.
[akpm@linux-foundation.org: apply the taint before calling panic()]
Signed-off-by: Josh Hunt <johunt@akamai.com>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r-- | kernel/watchdog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 51b29e9d2ba6..a8d6914030fe 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c | |||
@@ -368,6 +368,7 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) | |||
368 | smp_mb__after_atomic(); | 368 | smp_mb__after_atomic(); |
369 | } | 369 | } |
370 | 370 | ||
371 | add_taint(TAINT_SOFTLOCKUP, LOCKDEP_STILL_OK); | ||
371 | if (softlockup_panic) | 372 | if (softlockup_panic) |
372 | panic("softlockup: hung tasks"); | 373 | panic("softlockup: hung tasks"); |
373 | __this_cpu_write(soft_watchdog_warn, true); | 374 | __this_cpu_write(soft_watchdog_warn, true); |