Date: Sat, 15 May 2010 10:31:11 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/i386/i386 geode.c Message-ID: <201005151031.o4FAVNwp075797@repoman.freebsd.org>
index | next in thread | raw e-mail
phk 2010-05-15 10:31:11 UTC
FreeBSD src repository
Modified files:
sys/i386/i386 geode.c
Log:
SVN rev 208111 on 2010-05-15 10:31:11Z by phk
Apply a patch that has been lingering in my inbox for far too long:
On a soekris Net5501, if you do a watchdog -t 16, followed by a watchdog
-t 0 to disable the watchdog, and then after some time (16s) re-enable
the watchdog the box reboots immediatly. This prevents also to stop and
restart watchdogd(8).
This is because when you stop the watchdog, the timer is not stoped,
only the hard reset is disabled. So when the timer has elapsed, the C2
event of the timer is set.
But when the hard reset is re-enabled, the event is not cleared and the
box reboots.
The attached patch stops and resets the counter when the watchdog is
disabled and do not disable the hard reset of the timer (if the timer
has elapsed it's too late).
Submitted by: Patrick Lamaizière
Revision Changes Path
1.12 +13 -4 src/sys/i386/i386/geode.c
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005151031.o4FAVNwp075797>
