Go to the documentation of this file. 1 #ifndef _ASM_POWERPC_DELAY_H
2 #define _ASM_POWERPC_DELAY_H
20 extern void __delay(
unsigned long loops);
33 #define mdelay(n) udelay((n) * 1000)
56 #define spin_event_timeout(condition, timeout, delay) \
58 typeof(condition) __ret; \
59 unsigned long __loops = tb_ticks_per_usec * timeout; \
60 unsigned long __start = get_tbl(); \
61 while (!(__ret = (condition)) && (tb_ticks_since(__start) <= __loops)) \
67 __ret = (condition); \