diff options
| author | Linus Torvalds <torvalds@penguin.transmeta.com> | 2003-02-17 22:42:21 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-17 22:42:21 -0800 |
| commit | c6145e4957c1a455b763e23280a4cc50b740d0b5 (patch) | |
| tree | 8fda7aba19510b1f5ca14385301daedace2687b7 /include/linux | |
| parent | db8b50ba75f208be80e63366f124f064283f971c (diff) | |
Add ndelay() compatibility macro. If the architecture
doesn't define ndelay(), fall back on udelay().
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/delay.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/delay.h b/include/linux/delay.h index fc57b1c8900a..1ddf999dab42 100644 --- a/include/linux/delay.h +++ b/include/linux/delay.h @@ -34,4 +34,8 @@ extern unsigned long loops_per_jiffy; ({unsigned long msec=(n); while (msec--) udelay(1000);})) #endif +#ifndef ndelay +#define ndelay(x) udelay(((x)+999)/1000) +#endif + #endif /* defined(_LINUX_DELAY_H) */ |
