From owner-cvs-src@FreeBSD.ORG Fri Aug 6 02:44:59 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AA7F16A4CE; Fri, 6 Aug 2004 02:44:59 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0906743D46; Fri, 6 Aug 2004 02:44:59 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i762iwQ8094375; Fri, 6 Aug 2004 02:44:58 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i762iwrf094374; Fri, 6 Aug 2004 02:44:58 GMT (envelope-from cperciva) Message-Id: <200408060244.i762iwrf094374@repoman.freebsd.org> From: Colin Percival Date: Fri, 6 Aug 2004 02:44:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_timeout.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 02:44:59 -0000 cperciva 2004-08-06 02:44:58 UTC FreeBSD src repository Modified files: sys/kern kern_timeout.c Log: When reseting a pending callout, perform the deregistration in callout_reset rather than calling callout_stop. This results in a few lines of code duplication, but it provides a significant performance improvement because it avoids recursing on callout_lock. Requested by: rwatson Revision Changes Path 1.90 +16 -2 src/sys/kern/kern_timeout.c