diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-01-28 16:54:51 +0100 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-02-08 11:06:38 +0100 |
commit | 94ebe164159a620fe2457548554fc9b56501f256 (patch) | |
tree | 2c9547950210715b7317e6962e588e5eecc1115d /include/asm-cris | |
parent | 209e9c43ade3938feab8abcc7978c0e17c79cdc3 (diff) |
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')
-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) { |