]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/um/sys-i386/delay.c
[PATCH] uml: s390 preparation, delay moved to arch
[linux-2.6-omap-h63xx.git] / arch / um / sys-i386 / delay.c
index 20d37dbbaf08be338ee74d4f909060d7aa78fb66..e9892eef51cee5dd85038ba98c22432bb81d42af 100644 (file)
@@ -1,3 +1,6 @@
+#include "linux/delay.h"
+#include "asm/param.h"
+
 void __delay(unsigned long time)
 {
        /* Stolen from the i386 __loop_delay */
@@ -12,3 +15,18 @@ void __delay(unsigned long time)
                :"0" (time));
 }
 
+void __udelay(unsigned long usecs)
+{
+       int i, n;
+
+       n = (loops_per_jiffy * HZ * usecs) / MILLION;
+       for(i=0;i<n;i++) ;
+}
+
+void __const_udelay(unsigned long usecs)
+{
+       int i, n;
+
+       n = (loops_per_jiffy * HZ * usecs) / MILLION;
+       for(i=0;i<n;i++) ;
+}