summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2017-09-19 15:19:54 +0200
committerMartin Roth <martinroth@google.com>2017-09-26 16:53:28 +0000
commitc966075f46d8f54c3a799cd74bc4f3ec46fe553a (patch)
treed837bafb7107a5f123840910f316d652de882050 /src/lib
parent109ba284a155aab71676894f39735f119cd57405 (diff)
downloadcoreboot-c966075f46d8f54c3a799cd74bc4f3ec46fe553a.tar.xz
Use stopwatch_wait_until_expired where applicable
Change-Id: I4d6c6810b91294a7e401a4a1a446218c04c98e55 Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/21590 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Diffstat (limited to 'src/lib')
-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);
}