浏览代码

CRIS: Allow arch dependent delay to override common version.

Jesper Nilsson 17 年之前
父节点
当前提交
b43890af88
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/asm-cris/delay.h

+ 3 - 0
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) */