From owner-freebsd-arch@FreeBSD.ORG Sun Dec 2 16:15: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 D3FB016A41B for ; Sun, 2 Dec 2007 16:15:25 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 941D713C458 for ; Sun, 2 Dec 2007 16:15:25 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 778FB17105; Sun, 2 Dec 2007 16:15:23 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id lB2GFNkH019828; Sun, 2 Dec 2007 16:15:23 GMT (envelope-from phk@critter.freebsd.dk) To: "M. Warner Losh" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 02 Dec 2007 08:55:45 MST." <20071202.085545.177225588.imp@bsdimp.com> Date: Sun, 02 Dec 2007 16:15:23 +0000 Message-ID: <19827.1196612123@critter.freebsd.dk> Sender: phk@critter.freebsd.dk 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:15:25 -0000 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" -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.