diff options
author | avg <avg@FreeBSD.org> | 2012-06-03 08:01:12 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-06-03 08:01:12 +0000 |
commit | 85a02186bcd95689dfa239312a24eb374da5a373 (patch) | |
tree | 9ef08c0095708ccf29a153abf1a19de0f3f8bc2a /sys/x86 | |
parent | 1ecf065a6cb45ef14846d6ebdf44ce35059832a5 (diff) | |
download | FreeBSD-src-85a02186bcd95689dfa239312a24eb374da5a373.zip FreeBSD-src-85a02186bcd95689dfa239312a24eb374da5a373.tar.gz |
free wdog_kern_pat calls in post-panic paths from under SW_WATCHDOG
Those calls are useful with hardware watchdog drivers too.
MFC after: 3 weeks
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/x86/dump_machdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/x86/x86/dump_machdep.c b/sys/x86/x86/dump_machdep.c index 4e6546d..5c874f4 100644 --- a/sys/x86/x86/dump_machdep.c +++ b/sys/x86/x86/dump_machdep.c @@ -36,9 +36,7 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #include <sys/kernel.h> #include <sys/kerneldump.h> -#ifdef SW_WATCHDOG #include <sys/watchdog.h> -#endif #include <vm/vm.h> #include <vm/pmap.h> #include <machine/elf.h> @@ -198,9 +196,9 @@ cb_dumpdata(struct md_pa *mdp, int seqnr, void *arg) a = pa + i * PAGE_SIZE; va = pmap_kenter_temporary(trunc_page(a), i); } -#ifdef SW_WATCHDOG + wdog_kern_pat(WD_LASTVAL); -#endif + error = dump_write(di, va, 0, dumplo, sz); if (error) break; |