summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/delay.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-cris/delay.h')
-rw-r--r--include/asm-cris/delay.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-cris/delay.h b/include/asm-cris/delay.h
index d3a3978..123e19a 100644
--- a/include/asm-cris/delay.h
+++ b/include/asm-cris/delay.h
@@ -13,10 +13,13 @@
extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */
+/* May be defined by arch/delay.h. */
+#ifndef udelay
static inline void udelay(unsigned long usecs)
{
__delay(usecs * loops_per_usec);
}
+#endif
#endif /* defined(_CRIS_DELAY_H) */
OpenPOWER on IntegriCloud