ndelay() ?
Hi all,
In the new 2.4.21-pre5 we need a ndelay() function (ide support for b2k at least).
Some sparc[64], ppc supply this ndelay as a modified udelay (parameter time 1000);
we could also do it for our parisc as follow:
(see include/asm-parisc/delay.h)
...
static __inline__ void __ndelay(unsigned long usecs) {
__cr16_delay(usecs * ((unsigned long)boot_cpu_data.cpu_hz / 1000UL));
}#define ndelay(n) __ndelay(n)
...
OTC 2.5 proposed another solution:
(see include/linux/delay.h)
#ifndef ndelay
#define ndelay(x) udelay(((x)+999)/1000)
#endif
What is the best?
Thanks for advise,
Joel
---------------------------------
Vous surfez avec une ligne classique ?
Faites des economies avec Tiscali Complete
... Plus d'info sur http://complete.tiscali.be
Quoted 4 lines · Joel Soete
Hi all,
In the new 2.4.21-pre5 we need a
ndelay()function (ide support for b2k at least).
If you can't do ndelay well, udelay(1) as an equivalent is just fine. What it must be is at least the required nSec delay
Quoted 9 lines
-- Original Message --
Subject: Re: [parisc-linux]ndelay()?
From: Alan Cox <[email protected]>
To: Joel Soete <[email protected]>
Cc: [email protected]
Date: 11 Mar 2003 19:10:37 +0000On Tue, 2003-03-11 at 16:27, Joel Soete wrote:
Quoted 9 lines
Quoted 3 lines
Hi all,
In the new 2.4.21-pre5 we need a
ndelay()function (ide support for b2kat
Quoted 1 line
least).
If you can't do ndelay well, udelay(1) as an equivalent is just fine. What it must be is at least the required nSec delay
Many thanks Alan,
Joel
---------------------------------
Vous surfez avec une ligne classique ?
Faites des economies avec Tiscali Complete
... Plus d'info sur http://complete.tiscali.be
Quoted 9 lines
-- Original Message --
Subject: Re: [parisc-linux]ndelay()?
From: Alan Cox <[email protected]>
To: Joel Soete <[email protected]>
Cc: [email protected]
Date: 11 Mar 2003 19:10:37 +0000On Tue, 2003-03-11 at 16:27, Joel Soete wrote:
Quoted 9 lines
Quoted 3 lines
Hi all,
In the new 2.4.21-pre5 we need a
ndelay()function (ide support for b2kat
Quoted 1 line
least).
If you can't do ndelay well, udelay(1) as an equivalent is just fine. What it must be is at least the required nSec delay
That boots fine (and ide cdrom seems to works fine also) :)
Cheers,
Joel
---------------------------------
Vous surfez avec une ligne classique ?
Faites des economies avec Tiscali Complete
... Plus d'info sur http://complete.tiscali.be