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

2011-09-27 Thread Kostik Belousov
On Tue, Sep 27, 2011 at 10:39:44AM -0600, Julian Elischer wrote: > On 9/27/11 4:12 AM, Gavin Atkinson wrote: > >On Mon, 2011-09-26 at 09:30 -0400, John Baldwin wrote: > >>On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: > >>>On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrot

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

2011-09-27 Thread Julian Elischer
On 9/27/11 4:12 AM, Gavin Atkinson wrote: On Mon, 2011-09-26 at 09:30 -0400, John Baldwin wrote: On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: On Thursday 22 September 2011 19:55:23 David Somayajulu wrote: It appe

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

2011-09-27 Thread Gavin Atkinson
On Mon, 2011-09-26 at 09:30 -0400, John Baldwin wrote: > On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: > > On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: > > > On Thursday 22 September 2011 19:55:23 David Somayajulu wrote: > > > > It appears that the pause() functio

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

2011-09-26 Thread John Baldwin
On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: > On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: > > 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 ea

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

2011-09-23 Thread Gavin Atkinson
On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: > 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 dri

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

2011-09-22 Thread Warner Losh
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 paus

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

2011-09-22 Thread Hans Petter Selasky
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 dela

Choosing between DELAY(useconds) and pause()

2011-09-22 Thread David Somayajulu
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, Dav