Go to the documentation of this file.
13 #if defined(CONFIG_COLDFIRE)
25 #define DELAY_ALIGN ".balignw 4, 0x4a8e\n\t"
33 static inline void __delay(
unsigned long loops)
46 #ifdef CONFIG_CPU_HAS_NO_MULDIV64
54 #define HZSCALE (268435456 / (1000000 / HZ))
56 #define __const_udelay(u) \
57 __delay(((((u) * HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6)
61 static inline void __xdelay(
unsigned long xloops)
66 :
"=d" (xloops),
"=d" (tmp)
76 #define __const_udelay(n) (__xdelay((n) * 4295))
92 #define udelay(n) (__builtin_constant_p(n) ? \
93 ((n) > 20000 ? __bad_udelay() : __const_udelay(n)) : __udelay(n))