Date: Thu, 22 Sep 2011 20:07:19 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-current@freebsd.org Cc: "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>, David Somayajulu <david.somayajulu@qlogic.com> Subject: Re: Choosing between DELAY(useconds) and pause() Message-ID: <201109222007.19182.hselasky@c2i.net> In-Reply-To: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 22 September 2011 19:55:23 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 ? Maybe you want to use something like this: if (cold) DELAY() else pause() In your code. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109222007.19182.hselasky>