Explorar o código

[libc][delay] fix wrong usleep function

wangfuan %!s(int64=2) %!d(string=hai) anos
pai
achega
19f311b498
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/libc/posix/delay/delay.c

+ 1 - 1
components/libc/posix/delay/delay.c

@@ -69,7 +69,7 @@ int usleep(useconds_t usec)
     }
     else  /* scheduler has not run yet */
     {
-        udelay(usec / 1000u);
+        udelay(usec / 1000u * 1000u);
     }
     udelay(usec % 1000u);