diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-01-28 18:54:51 +0300 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-02-08 13:06:38 +0300 |
commit | 94ebe164159a620fe2457548554fc9b56501f256 (patch) | |
tree | 2c9547950210715b7317e6962e588e5eecc1115d /include/asm-cris/arch-v32 | |
parent | 209e9c43ade3938feab8abcc7978c0e17c79cdc3 (diff) | |
download | linux-94ebe164159a620fe2457548554fc9b56501f256.tar.xz |
CRIS v32: Add defines for udelay and ndelay in arch-v32/delay.h
Both of these are implemented using cris_delay10ns().
Diffstat (limited to 'include/asm-cris/arch-v32')
-rw-r--r-- | include/asm-cris/arch-v32/delay.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/delay.h b/include/asm-cris/arch-v32/delay.h index b6e941e637de..e9fda03810a9 100644 --- a/include/asm-cris/arch-v32/delay.h +++ b/include/asm-cris/arch-v32/delay.h @@ -1,6 +1,16 @@ #ifndef _ASM_CRIS_ARCH_DELAY_H #define _ASM_CRIS_ARCH_DELAY_H +extern void cris_delay10ns(u32 n10ns); +#define udelay(u) cris_delay10ns((u)*100) +#define ndelay(n) cris_delay10ns(((n)+9)/10) + +/* + * Not used anymore for udelay or ndelay. Referenced by + * e.g. init/calibrate.c. All other references are likely bugs; + * should be replaced by mdelay, udelay or ndelay. + */ + static inline void __delay(int loops) { |