Date: Wed, 27 Apr 2011 16:43:03 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/ddb db_command.c src/sys/dev/watchdog watchdog.c src/sys/sys watchdog.h Message-ID: <201104271643.p3RGhW3I067750@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
attilio 2011-04-27 16:43:03 UTC FreeBSD src repository Modified files: sys/ddb db_command.c sys/dev/watchdog watchdog.c sys/sys watchdog.h Log: SVN rev 221121 on 2011-04-27 16:43:03Z by attilio - Add the possibility to reuse the already last used timeout when patting the watchdog, via the watchdog(9) interface. For that, the WD_LASTVAL bitwise operation is used. It is mutually exclusive with any explicit timout passing to the watchdogs. The last timeout can be returned via the wdog_kern_last_timeout() KPI. - Add the possibility to pat the watchdogs installed via the watchdog(9) interface from the kernel. In order to do that the new KPI wdog_kern_pat() is offered and it does accept normalized nanoseconds or WD_LASTVAL. - Avoid to pass WD_ACTIVE down in the watchdog handlers. All the control bit processing should over to the upper layer functions and not passed down to the handlers at all. These changes are intended to be used in order to fix up the watchdog tripping in situation when the userland is busted, but protection is still wanted (examples: shutdown syncing / disk dumping). Sponsored by: Sandvine Incorporated Reviewed by: emaste, des, cognet MFC after: 2 weeks Revision Changes Path 1.86 +0 -8 src/sys/ddb/db_command.c 1.6 +51 -13 src/sys/dev/watchdog/watchdog.c 1.5 +9 -0 src/sys/sys/watchdog.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104271643.p3RGhW3I067750>