git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
arch
/
um
/
sys-i386
/
delay.c
diff --git
a/arch/um/sys-i386/delay.c
b/arch/um/sys-i386/delay.c
index
20d37db
..
d623e07
100644
(file)
--- a/
arch/um/sys-i386/delay.c
+++ b/
arch/um/sys-i386/delay.c
@@
-1,3
+1,8
@@
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/delay.h>
+#include <asm/param.h>
+
void __delay(unsigned long time)
{
/* Stolen from the i386 __loop_delay */
void __delay(unsigned long time)
{
/* Stolen from the i386 __loop_delay */
@@
-12,3
+17,13
@@
void __delay(unsigned long time)
:"0" (time));
}
:"0" (time));
}
+void __udelay(unsigned long usecs)
+{
+ int i, n;
+
+ n = (loops_per_jiffy * HZ * usecs) / MILLION;
+ for(i=0;i<n;i++)
+ cpu_relax();
+}
+
+EXPORT_SYMBOL(__udelay);