delay.h File Reference

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


Function Documentation

__inline__ void __delay ( int  loops  ) 

Definition at line 16 of file delay.h.

Referenced by udelay().

__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.


Variable Documentation

unsigned long loops_per_sec

Copyright (C) 1993 Linus Torvalds

Delay routines, using a pre-computed "loops_per_second" value.

Referenced by udelay().


Generated on Mon May 1 21:47:00 2006 for KernelAPI by  doxygen 1.4.6-5