summaryrefslogtreecommitdiff
path: root/src/lib/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/timer.c')
-rw-r--r--src/lib/timer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/timer.c b/src/lib/timer.c
index 58d32ee8e4..adc0d07cef 100644
--- a/src/lib/timer.c
+++ b/src/lib/timer.c
@@ -34,7 +34,5 @@ void udelay(unsigned int usec)
return;
stopwatch_init_usecs_expire(&sw, usec);
-
- while (!stopwatch_expired(&sw))
- ;
+ stopwatch_wait_until_expired(&sw);
}