From owner-cvs-all Thu Apr 11 7:48:40 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by hub.freebsd.org (Postfix) with ESMTP id 49A9937B405 for ; Thu, 11 Apr 2002 07:48:16 -0700 (PDT) Received: (qmail 4049 invoked from network); 11 Apr 2002 14:48:13 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 11 Apr 2002 14:48:13 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g3BEmhv56834; Thu, 11 Apr 2002 10:48:44 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020411162116.D3455-100000@gamplex.bde.org> Date: Thu, 11 Apr 2002 10:47:45 -0400 (EDT) From: John Baldwin To: Bruce Evans Subject: Re: cvs commit: src/sys/dev/digi digi.c Cc: Brian Somers , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Jake Burkholder Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 11-Apr-2002 Bruce Evans wrote: > On Wed, 10 Apr 2002, Jake Burkholder wrote: > >> Apparently, On Wed, Apr 10, 2002 at 09:06:18AM -0400, >> John Baldwin said words to the effect of; >> > I've thought about having some sort of separate API for code that just >> > ways to >> > delay. Right now they use tsleep() on a channel that never gets woken up >> > with >> > a timeout. If we had a delay(int timo) function then it could use a >> > callout >> > when callouts were working and fall back to DELAY() in the cold case. >> >> No, this is wrong. Anything that uses cold is wrong. The correct fix is to >> move the clock initialization earlier in boot to be before the device probe. > > This can't be done in a machine independent way. Clock interrupts > might be shared, and then enabling them first would cause either endless > interrupts if another device is driving the interrupt. This happens > not to be a problem on i386's because clock interrupts aren't shared. They aren't shared on anything else we use run on right now either. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message