summaryrefslogtreecommitdiffstats
path: root/include/asm-cris
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2008-01-28 16:54:51 +0100
committerJesper Nilsson <jesper.nilsson@axis.com>2008-02-08 11:06:38 +0100
commit94ebe164159a620fe2457548554fc9b56501f256 (patch)
tree2c9547950210715b7317e6962e588e5eecc1115d /include/asm-cris
parentCRIS v32: Adjust arch-v32/atomic.h for new spinlock/rwlock infrastructure (diff)
downloadlinux-94ebe164159a620fe2457548554fc9b56501f256.tar.xz
linux-94ebe164159a620fe2457548554fc9b56501f256.zip
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.h10
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)
{