diff options
-rw-r--r-- | src/cpu/samsung/exynos5420/timer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cpu/samsung/exynos5420/timer.c b/src/cpu/samsung/exynos5420/timer.c index 88e1f3e489..f8d3110000 100644 --- a/src/cpu/samsung/exynos5420/timer.c +++ b/src/cpu/samsung/exynos5420/timer.c @@ -20,7 +20,7 @@ #include <console/console.h> #include <timer.h> #include <delay.h> - +#include <thread.h> #include "clk.h" void init_timer(void) @@ -33,6 +33,9 @@ void udelay(unsigned usec) { struct mono_time current, end; + if (!thread_yield_microseconds(usec)) + return; + timer_monotonic_get(¤t); end = current; mono_time_add_usecs(&end, usec); |