Go to the source code of this file.
Functions | |
| __inline__ void | __delay (int loops) |
| __inline__ void | udelay (unsigned long usecs) |
Variables | |
| unsigned long | loops_per_sec |
| __inline__ void __delay | ( | int | loops | ) |
| __inline__ void udelay | ( | unsigned long | usecs | ) |
division by multiplication: you don't have to worry about loss of precision.
Use only for very small delays ( < 1 msec). Should probably use a lookup table, really, as the multiplications take much too long with short delays. This is a "reasonable" implementation, though (and the first constant multiplications gets optimized away if the delay is a constant)
< 2**32 / 1000000
Definition at line 35 of file delay.h.
References __delay(), and loops_per_sec.
| unsigned long loops_per_sec |
Copyright (C) 1993 Linus Torvalds
Delay routines, using a pre-computed "loops_per_second" value.
Referenced by udelay().
1.4.6-5