Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2002 20:45:13 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Brian Somers <brian@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/dev/digi digi.c
Message-ID:  <20020410204138.C7535-100000@gamplex.bde.org>
In-Reply-To: <200204100313.g3A3DSt33125@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Apr 2002, Brian Somers wrote:

> brian       2002/04/09 20:13:28 PDT
>
>   Modified files:
>     sys/dev/digi         digi.c
>   Log:
>   Add a digi_delay() function and use it instead of tsleep() when polling
>   the card for command completion.
>
>   digi_delay() uses either tsleep() or DELAY() depending on the value of
>   ``cold''.
>
>   Pointed in the right direction by: jhb

Maybe tsleep() should sleep when cold if given a timeout.  This is not quite
right, since the semantics of the timeout arg is to give a maximum wait,
not a delay, but it is better than ...

>
>   Revision  Changes    Path
>   1.25      +14 -5     src/sys/dev/digi/digi.c

N * (+14 -5) in N drivers.  All drivers that support dynamic loading need
something like this, since busy-waiting on running systems is unacceptable.
Not that I will ever want to use this misfeature.

Bruce


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?20020410204138.C7535-100000>