Merge branch 'next' of git://selinuxproject.org/~jmorris/linux-security
[linux-btrfs-devel.git] / arch / um / include / asm / delay.h
blob8a5576d8eda55707646e6b1f47c680e969d10059
1 #ifndef __UM_DELAY_H
2 #define __UM_DELAY_H
4 /* Undefined on purpose */
5 extern void __bad_udelay(void);
6 extern void __bad_ndelay(void);
8 extern void __udelay(unsigned long usecs);
9 extern void __ndelay(unsigned long usecs);
10 extern void __delay(unsigned long loops);
12 #define udelay(n) ((__builtin_constant_p(n) && (n) > 20000) ? \
13 __bad_udelay() : __udelay(n))
15 #define ndelay(n) ((__builtin_constant_p(n) && (n) > 20000) ? \
16 __bad_ndelay() : __ndelay(n))
18 #endif