Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.32-rc8 26 lines 496 B view raw
1#ifndef _ASM_SCORE_DELAY_H 2#define _ASM_SCORE_DELAY_H 3 4static inline void __delay(unsigned long loops) 5{ 6 /* 3 cycles per loop. */ 7 __asm__ __volatile__ ( 8 "1:\tsubi\t%0, 3\n\t" 9 "cmpz.c\t%0\n\t" 10 "ble\t1b\n\t" 11 : "=r" (loops) 12 : "0" (loops)); 13} 14 15static inline void __udelay(unsigned long usecs) 16{ 17 unsigned long loops_per_usec; 18 19 loops_per_usec = (loops_per_jiffy * HZ) / 1000000; 20 21 __delay(usecs * loops_per_usec); 22} 23 24#define udelay(usecs) __udelay(usecs) 25 26#endif /* _ASM_SCORE_DELAY_H */