From owner-cvs-src-old@FreeBSD.ORG Fri Dec 18 12:11:00 2009 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 B539B106568B for ; Fri, 18 Dec 2009 12:11:00 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A2E0F8FC15 for ; Fri, 18 Dec 2009 12:11:00 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBICB0ur077457 for ; Fri, 18 Dec 2009 12:11:00 GMT (envelope-from ru@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBICB0ex077456 for cvs-src-old@freebsd.org; Fri, 18 Dec 2009 12:11:00 GMT (envelope-from ru@repoman.freebsd.org) Message-Id: <200912181211.nBICB0ex077456@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ru@repoman.freebsd.org using -f From: Ruslan Ermilov Date: Fri, 18 Dec 2009 12:10:42 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ipmi ipmi.c 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: Fri, 18 Dec 2009 12:11:00 -0000 ru 2009-12-18 12:10:42 UTC FreeBSD src repository Modified files: sys/dev/ipmi ipmi.c Log: SVN rev 200666 on 2009-12-18 12:10:42Z by ru - Fixed incorrect watchdog timeout setting: MSB of a 2-byte value is obtained by dividing it by 256, not by 2550; also, one second is 10^9 nanoseconds, not 1800000000 nanoseconds. - Due to rounding error, setting watchdog to a really small timeout (<1 sec) was turning the watchdog off. It should set the watchdog to a small timeout instead. - Implemented error checking in ipmi_wd_event(), as required by watchdog(9). PR: kern/130512 Submitted by: Dmitrij Tejblum - Additionally, check that the timeout value is within the supported range, and if it's too large, act as required by watchdog(9). MFC after: 3 days Revision Changes Path 1.13 +20 -9 src/sys/dev/ipmi/ipmi.c