Subject: Re: /dev/music weirdness
To: None <thorpej@zembu.com>
From: Lennart Augustsson <lennart@mail.augustsson.net>
List: tech-kern
Date: 01/26/2001 21:40:21
Jason R Thorpe wrote:

> On Fri, Jan 26, 2001 at 09:00:58PM -0500, Lennart Augustsson wrote:
>
>  > Sounds like a good idea, except DON'T USE DELAY().  Sorry for shouting,
>  > but there are far too many delay()s in the kernel.  Use tsleep() instead.
>
> There are some reasons to use delay!  If what you're doing is timing
> sensitive, tsleep() is absolutely the wrong thing to use.  You can block
> for a very long time if you tsleep().

Yes, but if you're waiting for the last byte to move out of a UART it doesn't
really matter if you block longer than you ask for.

    -- Lennart