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

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Thu, 22 Sep 2011 20:07:19 +0200
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
Received on Thu Sep 22 2011 - 16:10:14 UTC

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