2 * Copyright 2003 PathScale, Inc.
3 * Copied from arch/x86_64
5 * Licensed under the GPL
8 #include "linux/delay.h"
9 #include "asm/processor.h"
10 #include "asm/param.h"
12 void __delay(unsigned long loops
)
16 for(i
= 0; i
< loops
; i
++) ;
19 void __udelay(unsigned long usecs
)
23 n
= (loops_per_jiffy
* HZ
* usecs
) / MILLION
;
27 void __const_udelay(unsigned long usecs
)
31 n
= (loops_per_jiffy
* HZ
* usecs
) / MILLION
;
36 * Overrides for Emacs so that we follow Linus's tabbing style.
37 * Emacs will notice this stuff at the end of the file and automatically
38 * adjust the settings for this buffer only. This must remain at the end
40 * ---------------------------------------------------------------------------
42 * c-file-style: "linux"