From c966075f46d8f54c3a799cd74bc4f3ec46fe553a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Tue, 19 Sep 2017 15:19:54 +0200 Subject: Use stopwatch_wait_until_expired where applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4d6c6810b91294a7e401a4a1a446218c04c98e55 Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/21590 Tested-by: build bot (Jenkins) Reviewed-by: Mario Scheithauer --- src/lib/timer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib') 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); } -- cgit v1.2.3