Eliminate explicit kdb_enter in the software watchdog handler (which
produced incorrect behaviour with the KDB_UNATTENDED option) and call panic in both the KDB and non-KDB cases. This change is consistent with rwatson's current kdb/ddb work.
This commit is contained in:
parent
728c8470f1
commit
1e62d77c09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170070
@ -555,7 +555,7 @@ watchdog_config(void *unused __unused, u_int cmd, int *error)
|
||||
|
||||
/*
|
||||
* Handle a watchdog timeout by dumping interrupt information and
|
||||
* then either dropping to DDB or panicing.
|
||||
* then panicking.
|
||||
*/
|
||||
static void
|
||||
watchdog_fire(void)
|
||||
@ -578,13 +578,7 @@ watchdog_fire(void)
|
||||
inttotal += *curintr++;
|
||||
}
|
||||
printf("Total %20ju\n", (uintmax_t)inttotal);
|
||||
|
||||
#ifdef KDB
|
||||
kdb_backtrace();
|
||||
kdb_enter("watchdog timeout");
|
||||
#else
|
||||
panic("watchdog timeout");
|
||||
#endif /* KDB */
|
||||
}
|
||||
|
||||
#endif /* SW_WATCHDOG */
|
||||
|
Loading…
Reference in New Issue
Block a user