]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In nxprtc(4), use the countdown timer for better timekeeping resolution
authorIan Lepore <ian@FreeBSD.org>
Mon, 15 Jul 2019 21:47:40 +0000 (21:47 +0000)
committerIan Lepore <ian@FreeBSD.org>
Mon, 15 Jul 2019 21:47:40 +0000 (21:47 +0000)
commit0cc1098a1a6b8353da73ee579091d399652aa57c
tree3da7c77a9307956590454de64e00ade1f15c9dfe
parenta134d96ef1fec4d9811c91f1d0051b6aed33de3d
In nxprtc(4), use the countdown timer for better timekeeping resolution
on PCx2129 chips too.

The datasheet for the PCx2129 chips says that there is only a watchdog
timer, no countdown timer.  It turns out the countdown timer hardware is
there and works just the same as it does on a PCx2127 chip, except that you
can't use it to trigger an interrupt or toggle an output pin.  We don't need
interrupts or output pins, we only need to read the timer register to get
sub-second resolution.  So start treating the 2129 chips the same as 2127.
sys/dev/iicbus/nxprtc.c