> At 7:25 PM -0800 2000/3/20, Mike Smith wrote:
> 
> >  Not that I consider this particuarly optimal; busy-waiting for the
> >  controller is a terrible waste of the host CPU.  A better solution would
> >  probably defer the command and try again a short time later, but let's
> >  see if this works first.
> 
>       Since this is a device driver, I guess you can't usleep() and 
> then check again?  Is there anything else useful you could be doing 
> during that period of time -- other than busy waiting?

Well, I call amr_done() to collect completed commands.  There's not much 
other housekeeping that's possible at that point.

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime.             \\  [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to