From d626b50b9db1f1fea4d0bf3668a05f8198fe83dd Mon Sep 17 00:00:00 2001 From: Mike Karels Date: Wed, 3 Jan 2018 00:56:30 +0000 Subject: 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 --- sys/kern/kern_dump.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sys/kern/kern_dump.c') 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 __FBSDID("$FreeBSD$"); -#include "opt_watchdog.h" - #include #include #include @@ -36,9 +34,7 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifdef SW_WATCHDOG #include -#endif #include #include #include @@ -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); -- cgit v1.2.3