2 * Copyright 2003 PathScale, Inc.
3 * Copied from arch/x86_64
5 * Licensed under the GPL
8 #include <linux/module.h>
9 #include <linux/delay.h>
10 #include <asm/processor.h>
11 #include <asm/param.h>
13 void __delay(unsigned long loops
)
17 for(i
= 0; i
< loops
; i
++)
21 void __udelay(unsigned long usecs
)
25 n
= (loops_per_jiffy
* HZ
* usecs
) / MILLION
;
30 EXPORT_SYMBOL(__udelay
);