Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2024 15:02:57 -0500
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        <freebsd-hackers@FreeBSD.org>, <freebsd-arch@freebsd.org>
Subject:   Watchdog rework
Message-ID:  <20241107150257.022d1f92@ralga.knownspace>

next in thread | raw e-mail | index | archive | help

Hi everyone,

I've spent some time reworking the watchdog framework, changing it to
use sbintime_t instead of power-of-2-nanoseconds.  I've thus far tested
it only with a software watchdog, but put it up for review to get some
feedback on the approach as a whole.  The changes are backwards
compatible, so drivers don't need to be converted immediately, but can
instead be converted over time as needed.  

The change was brought because at Juniper we have some watchdog timers
that don't fit nicely in the power-of-2 nanosecond format, but instead
use a simple countdown timer.  Moving to sbintime_t (which may even be
slightly overkill) gives more freedom with setting the watchdog period.

The review is
at https://reviews.freebsd.org/D47312 and I would love to get some feedback on it.

- Justin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20241107150257.022d1f92>