Subject: Re: wi0 on SMC 2632W
To: Peter Seebach <seebs@plethora.net>
From: Lennart Augustsson <lennart@mail.augustsson.net>
List: port-i386
Date: 12/18/2000 22:00:06
Assuming your code is not running in an interrupt context you could
use tsleep(9).

The reason the PCMCIA cards make the system pause is because the
code is broken.  It uses delay()...

    -- Lennart


Peter Seebach wrote:

> In message <3A3ECB69.56D2FA57@mail.augustsson.net>, Lennart Augustsson writes:
> >ARRRGGHHH!!  Never call delay() with values that large.  Use some other
> >way to delay execution.
>
> I'd be glad to.  I just stole that from the "I hope this works" patch I found
> in ~wpaul.  :)
>
> Any suggestions for how to *correctly* do this welcome.  I have no prior
> kernel experience.  What's a good way for a piece of the kernel to say "Come
> back to me in about a tenth of a second"?
>
> FWIW, most of my PCMCIA cards have at least 2 seconds of total system death
> when they're plugged in...
>
> -s