From owner-freebsd-arch@FreeBSD.ORG Sun Dec 2 16:39:25 2007 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 505C516A480 for ; Sun, 2 Dec 2007 16:39:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D77E713C46B for ; Sun, 2 Dec 2007 16:39:24 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id lB2GWdRK071258; Sun, 2 Dec 2007 09:32:40 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 02 Dec 2007 09:36:03 -0700 (MST) Message-Id: <20071202.093603.228972203.imp@bsdimp.com> To: phk@phk.freebsd.dk From: "M. Warner Losh" In-Reply-To: <19827.1196612123@critter.freebsd.dk> References: <20071202.085545.177225588.imp@bsdimp.com> <19827.1196612123@critter.freebsd.dk> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: arch@FreeBSD.org Subject: Re: New "timeout" api, to replace callout X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2007 16:39:25 -0000 In message: <19827.1196612123@critter.freebsd.dk> "Poul-Henning Kamp" writes: : In message <20071202.085545.177225588.imp@bsdimp.com>, "M. Warner Losh" writes: : : >There are a number of places in the tree that use a parameter of '1' : >today to mean "next time that's convenient." Some of these places are : >clever and know that HZ is never < 100 or > 1000 (or so they think), : >while others are just sloppy code. : : Yes, but those can hardly be called "concrete" in terms of wanting : to know what they mean, can they ? :-) : : The only way I can see we can deal with them in the short term, : is to ask for timeouts of "1000000 / hz, TIMEOUT_USEC" Or have a "timeout_soon" function like you have the other timeout conversion routines. Warner