Re: Help with a driver im writing.
- From: Ace <acemann@xxxxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 17:35:04 -0500
On Mon, 09 Jan 2006 00:38:42 +0100, Kasper Dupont
<27396270153341488322@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>Ace wrote:
>>
>> BTW, can I use udelay in a tasklet? My understanding is they must be
>> atomic and cant call anything that sleeps. I need udelay in places as
>> to allow time for the latched data on the hardware to settle.
>
>udelay does busywaiting, so using it for that purpose is going
>to work. It is going to waste CPU cycles, but with some hardware
>that may be unavoidable.
>
>How long delays do you need? There exist some slow I/O macros
>that will do an extra outb to an unused port to get a small
>delay large enough for much hardware to settle.
I got bold and removed the delays and it seem to work so just to be
sure ill use the outb_p version and get rid of udelay
im gunna look at asm/io.h for curiosity
Ace
.
- References:
- Help with a driver im writing.
- From: Aceman
- Re: Help with a driver im writing.
- From: Peter Z
- Re: Help with a driver im writing.
- From: Ace
- Help with a driver im writing.
- Prev by Date: Re: Help with a driver im writing.
- Next by Date: Web site promotion software
- Previous by thread: Re: Help with a driver im writing.
- Next by thread: Re: Help with a driver im writing.
- Index(es):
Relevant Pages
|