From owner-cvs-src-old@FreeBSD.ORG Wed Apr 27 16:43:32 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4A8A106566B for ; Wed, 27 Apr 2011 16:43:32 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C44FE8FC17 for ; Wed, 27 Apr 2011 16:43:32 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p3RGhWEO067751 for ; Wed, 27 Apr 2011 16:43:32 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p3RGhW3I067750 for cvs-src-old@freebsd.org; Wed, 27 Apr 2011 16:43:32 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <201104271643.p3RGhW3I067750@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Wed, 27 Apr 2011 16:43:03 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ddb db_command.c src/sys/dev/watchdog watchdog.c src/sys/sys watchdog.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2011 16:43:32 -0000 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