From 1e62d77c0967961b5d48f87414a5052f4f470fb0 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 28 May 2007 19:51:12 +0000 Subject: [PATCH] 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. --- sys/kern/kern_clock.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index f75555b51b5b..aa5839b99966 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -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 */