Ver Fonte

CRIS: Allow arch dependent delay to override common version.

Jesper Nilsson há 17 anos atrás
pai
commit
b43890af88
1 ficheiros alterados com 3 adições e 0 exclusões
  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 */
 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)
 static inline void udelay(unsigned long usecs)
 {
 {
 	__delay(usecs * loops_per_usec);
 	__delay(usecs * loops_per_usec);
 }
 }
+#endif
 
 
 #endif /* defined(_CRIS_DELAY_H) */
 #endif /* defined(_CRIS_DELAY_H) */