From owner-cvs-all Thu Apr 11 0:13:37 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1B72237B416; Thu, 11 Apr 2002 00:13:24 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA03076; Thu, 11 Apr 2002 17:13:09 +1000 Date: Thu, 11 Apr 2002 17:13:09 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Scott Long Cc: Brian Somers , , Subject: Re: cvs commit: src/sys/dev/digi digi.c digi.h digi_isa.c In-Reply-To: <1018452343.10637.2.camel@hollin.btc.adaptec.com> Message-ID: <20020411170441.B3455-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 10 Apr 2002, Scott Long wrote: > On Wed, 2002-04-10 at 09:32, Brian Somers wrote: > > > brian 2002/04/10 07:32:56 PDT > > > > Modified files: > > sys/dev/digi digi.c digi.h digi_isa.c > > Log: > > Yet another adjustment of digi_delay(). The delay is now consistent > > irrespective of whether tsleep() or DELAY() is used. > > > > Revision Changes Path > > 1.27 +8 -8 src/sys/dev/digi/digi.c > > 1.12 +2 -1 src/sys/dev/digi/digi.h > > 1.9 +9 -9 src/sys/dev/digi/digi_isa.c > ... > Instead of jumping through all of these hoops, why can't you do a > config_intrhook_establish() to have the delay-sensitive operations done > at a more appropriate time? This will work for both the at-boot and > post-boot cases. Jumping through hooks is harder than through hoops, but may be necessary. config_intrhook_establish() is part of Justin Gibbs' solution for the problem that interrupts might not work at config time. Even clock interrupts might not work at config time, so device drivers shouldn't call timeout() at config time. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message