Re: Choosing between DELAY(useconds) and pause()

From: Warner Losh <imp_at_bsdimp.com>
Date: Thu, 22 Sep 2011 12:08:55 -0600
if (cold)
DELAY()
else
pause()

On Sep 22, 2011, at 11:55 AM, David Somayajulu wrote:

> It appears that the pause() function cannot be used in driver functions which are invoked early in the boot process. Is there is a kernel api which a device driver can use to determine whether to use pause() or DELAY(), for delays which are say greater than 10hz - may be even 1 hz ?
> 
> Cheers,
> David S.
> 
> 
> ________________________________
> This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
> _______________________________________________
> freebsd-drivers_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe_at_freebsd.org"
> 
> 
Received on Thu Sep 22 2011 - 16:16:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC