Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
delay.h File Reference

Go to the source code of this file.

Macros

#define __MAX_UDELAY   (226050910UL/HZ) /* maximum udelay argument */
 
#define __MAX_NDELAY   (4294967295UL/HZ) /* maximum ndelay argument */
 
#define udelay(n)
 
#define ndelay(n)
 
#define muldiv(a, b, c)   (((a)*(b))/(c))
 

Functions

void __delay (unsigned long loops)
 
void __udelay (unsigned int x)
 
void __bad_udelay (void)
 
void __bad_ndelay (void)
 

Variables

unsigned long loops_per_jiffy
 

Macro Definition Documentation

#define __MAX_NDELAY   (4294967295UL/HZ) /* maximum ndelay argument */

Definition at line 40 of file delay.h.

#define __MAX_UDELAY   (226050910UL/HZ) /* maximum udelay argument */

Definition at line 39 of file delay.h.

#define muldiv (   a,
  b,
  c 
)    (((a)*(b))/(c))

Definition at line 70 of file delay.h.

#define ndelay (   n)
Value:
(__builtin_constant_p(n) ? \
((n) > __MAX_NDELAY ? __bad_ndelay() : __udelay((n) * HZ)) : \
__udelay((n) * HZ))

Definition at line 66 of file delay.h.

#define udelay (   n)
Value:
(__builtin_constant_p(n) ? \
((n) > __MAX_UDELAY ? __bad_udelay() : __udelay((n) * (19 * HZ))) : \
__udelay((n) * (19 * HZ)))

Definition at line 62 of file delay.h.

Function Documentation

void __bad_ndelay ( void  )
void __bad_udelay ( void  )
void __delay ( unsigned long  loops)
inline

Definition at line 16 of file delay.h.

void __udelay ( unsigned int  x)
inline

Definition at line 44 of file delay.h.

Variable Documentation

unsigned long loops_per_jiffy

Definition at line 94 of file processor.h.