Linux 3.17-rc2
[linux/fpc-iii.git] / arch / parisc / include / asm / delay.h
blob08e58e679e3e4e7c0bc19237c3ed944574cdd24e
1 #ifndef _ASM_PARISC_DELAY_H
2 #define _ASM_PARISC_DELAY_H
4 static __inline__ void __delay(unsigned long loops) {
5 asm volatile(
6 " .balignl 64,0x34000034\n"
7 " addib,UV -1,%0,.\n"
8 " nop\n"
9 : "=r" (loops) : "0" (loops));
12 extern void __udelay(unsigned long usecs);
13 extern void __udelay_bad(unsigned long usecs);
15 static inline void udelay(unsigned long usecs)
17 if (__builtin_constant_p(usecs) && (usecs) > 20000)
18 __udelay_bad(usecs);
19 __udelay(usecs);
22 #endif /* _ASM_PARISC_DELAY_H */