Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2011 12:08:55 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        David Somayajulu <david.somayajulu@qlogic.com>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@FreeBSD.org>, "freebsd-drivers@freebsd.org" <freebsd-drivers@FreeBSD.org>
Subject:   Re: Choosing between DELAY(useconds) and pause()
Message-ID:  <99C858FB-B215-4EFF-9EF1-09C5242091D4@bsdimp.com>
In-Reply-To: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org>
References:  <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org"
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99C858FB-B215-4EFF-9EF1-09C5242091D4>