summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-10-13 21:49:19 +0000
committerps <ps@FreeBSD.org>2000-10-13 21:49:19 +0000
commitc099ba410dfb972656823b49d65974e83b4c330f (patch)
tree1cfa361d7b34b2e961f838bae2645621d37f7eb7 /sys/kern
parentb9beb400175d8d0b8787e52f83a9f653c158d0aa (diff)
downloadFreeBSD-src-c099ba410dfb972656823b49d65974e83b4c330f.zip
FreeBSD-src-c099ba410dfb972656823b49d65974e83b4c330f.tar.gz
Do not allocate a callout for all crashdumps, not just when you panic.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_shutdown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 01e99ea..eda2620 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -109,6 +109,8 @@ watchdog_tickle_fn wdog_tickler = NULL;
*/
const char *panicstr;
+int dumping; /* system is dumping */
+
static void boot(int) __dead2;
static void dumpsys(void);
static void poweroff_wait(void *, int);
@@ -469,7 +471,6 @@ static void
dumpsys(void)
{
int error;
- static int dumping;
savectx(&dumppcb);
#ifdef __i386__
OpenPOWER on IntegriCloud