Choosing between DELAY(useconds) and pause()

Warner Losh imp at bsdimp.com
Thu Sep 22 18:16:47 UTC 2011


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"
> 
> 



More information about the freebsd-current mailing list