diff options
author | Mike Karels <karels@FreeBSD.org> | 2018-01-03 00:56:30 +0000 |
---|---|---|
committer | Mike Karels <karels@FreeBSD.org> | 2018-01-03 00:56:30 +0000 |
commit | d626b50b9db1f1fea4d0bf3668a05f8198fe83dd (patch) | |
tree | b9fd9c0fe54ca6c9c718b074f688b2759717bc16 /sys/kern/kern_dump.c | |
parent | f68e716ffe4b6edcb66df7e6e44ad8bde817417b (diff) |
make SW_WATCHDOG dynamic
Enable the hardclock-based watchdog previously conditional on the
SW_WATCHDOG option whenever hardware watchdogs are not found, and
watchdogd attempts to enable the watchdog. The SW_WATCHDOG option
still causes the sofware watchdog to be enabled even if there is a
hardware watchdog. This does not change the other software-based
watchdog enabled by the --softtimeout option to watchdogd.
Note that the code to reprime the watchdog during kernel core dumps is
no longer conditional on SW_WATCHDOG. I think this was previously a bug.
Reviewed by: imp alfred bjk
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D13713
Notes
Notes:
svn path=/head/; revision=327505
Diffstat (limited to 'sys/kern/kern_dump.c')
-rw-r--r-- | sys/kern/kern_dump.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_dump.c b/sys/kern/kern_dump.c index d2914966957a..8d2e8ab19a8c 100644 --- a/sys/kern/kern_dump.c +++ b/sys/kern/kern_dump.c @@ -27,8 +27,6 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include "opt_watchdog.h" - #include <sys/param.h> #include <sys/systm.h> #include <sys/conf.h> @@ -36,9 +34,7 @@ __FBSDID("$FreeBSD$"); #include <sys/kernel.h> #include <sys/proc.h> #include <sys/kerneldump.h> -#ifdef SW_WATCHDOG #include <sys/watchdog.h> -#endif #include <vm/vm.h> #include <vm/vm_param.h> #include <vm/pmap.h> @@ -205,9 +201,7 @@ dumpsys_cb_dumpdata(struct dump_pa *mdp, int seqnr, void *arg) } dumpsys_map_chunk(pa, chunk, &va); -#ifdef SW_WATCHDOG wdog_kern_pat(WD_LASTVAL); -#endif error = dump_append(di, va, 0, sz); dumpsys_unmap_chunk(pa, chunk, va); |