]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
make SW_WATCHDOG dynamic
authorMike Karels <karels@FreeBSD.org>
Wed, 3 Jan 2018 00:56:30 +0000 (00:56 +0000)
committerMike Karels <karels@FreeBSD.org>
Wed, 3 Jan 2018 00:56:30 +0000 (00:56 +0000)
commitd626b50b9db1f1fea4d0bf3668a05f8198fe83dd
treeb9fd9c0fe54ca6c9c718b074f688b2759717bc16
parentf68e716ffe4b6edcb66df7e6e44ad8bde817417b
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
share/man/man4/watchdog.4
sys/conf/NOTES
sys/dev/watchdog/watchdog.c
sys/kern/kern_clock.c
sys/kern/kern_dump.c
sys/sys/watchdog.h