1 #ifndef __UM_DELAY_H 2 #define __UM_DELAY_H 3 4 /* Undefined on purpose */ 5 extern void __bad_udelay(void); 6 extern void __bad_ndelay(void); 7 8 extern void __udelay(unsigned long usecs); 9 extern void __ndelay(unsigned long usecs); 10 extern void __delay(unsigned long loops); 11 12 #define udelay(n) ((__builtin_constant_p(n) && (n) > 20000) ? \ 13 __bad_udelay() : __udelay(n)) 14 15 #define ndelay(n) ((__builtin_constant_p(n) && (n) > 20000) ? \ 16 __bad_ndelay() : __ndelay(n)) 17 18 #endif 19