diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2017-09-19 15:19:54 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-09-26 16:53:28 +0000 |
commit | c966075f46d8f54c3a799cd74bc4f3ec46fe553a (patch) | |
tree | d837bafb7107a5f123840910f316d652de882050 /src/mainboard | |
parent | 109ba284a155aab71676894f39735f119cd57405 (diff) |
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/mainboard')
-rw-r--r-- | src/mainboard/google/oak/romstage.c | 3 | ||||
-rw-r--r-- | src/mainboard/siemens/mc_apl1/mainboard.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mainboard/google/oak/romstage.c b/src/mainboard/google/oak/romstage.c index a92e4fb7c6..1f5654748b 100644 --- a/src/mainboard/google/oak/romstage.c +++ b/src/mainboard/google/oak/romstage.c @@ -55,8 +55,7 @@ void main(void) /* init memory */ mt_mem_init(get_sdram_config()); - while (!stopwatch_expired(&sw)) - ; + stopwatch_wait_until_expired(&sw); /* Set to maximum frequency */ if (board_id() + CONFIG_BOARD_ID_ADJUSTMENT < 5) diff --git a/src/mainboard/siemens/mc_apl1/mainboard.c b/src/mainboard/siemens/mc_apl1/mainboard.c index fb849f9872..f77ef75d3e 100644 --- a/src/mainboard/siemens/mc_apl1/mainboard.c +++ b/src/mainboard/siemens/mc_apl1/mainboard.c @@ -165,8 +165,7 @@ static void wait_for_legacy_dev(void *unused) stopwatch_init_msecs_expire(&sw, (legacy_delay - us_since_boot) / 1000); printk(BIOS_NOTICE, "Wait remaining %d of %d us for legacy devices...", legacy_delay - us_since_boot, legacy_delay); - while (!stopwatch_expired(&sw)) - ; + stopwatch_wait_until_expired(&sw); printk(BIOS_NOTICE, "done!\n"); } |