Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2002 10:47:45 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Brian Somers <brian@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Jake Burkholder <jake@locore.ca>
Subject:   Re: cvs commit: src/sys/dev/digi digi.c
Message-ID:  <XFMail.20020411104745.jhb@FreeBSD.org>
In-Reply-To: <20020411162116.D3455-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org>  <><  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020411104745.jhb>