<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21589">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">timer: Add helper function stopwatch_wait_until_expired<br><br>Change-Id: Ia888907028d687e3d17e5a088657086a3c839ad3<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M src/include/timer.h<br>1 file changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/21589/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/include/timer.h b/src/include/timer.h<br>index 6b7baaf..7264250 100644<br>--- a/src/include/timer.h<br>+++ b/src/include/timer.h<br>@@ -166,6 +166,15 @@<br> }<br> <br> /*<br>+ * Tick and check the stopwatch as long as it has not expired.<br>+ */<br>+static inline void stopwatch_wait_until_expired(struct stopwatch *sw)<br>+{<br>+  while (stopwatch_expired(sw))<br>+                ;<br>+}<br>+<br>+/*<br>  * Return number of microseconds since starting the stopwatch.<br>  */<br> static inline long stopwatch_duration_usecs(struct stopwatch *sw)<br></pre><p>To view, visit <a href="https://review.coreboot.org/21589">change 21589</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21589"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia888907028d687e3d17e5a088657086a3c839ad3 </div>
<div style="display:none"> Gerrit-Change-Number: 21589 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>