<p>Martin Roth has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22821">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">util/cbmem: Print timestamp frequency in verbose mode<br><br>The code flow is changed slightly to print the timestamp frequency from<br>either method of determining it.<br><br>BUG=b:70432544<br>TEST=Build and test cbmem -t -V<br><br>Change-Id: I02286fa67919e70a3592cdbcc1c9ca2991b7f385<br>Signed-off-by: Martin Roth <martinroth@google.com><br>---<br>M util/cbmem/cbmem.c<br>1 file changed, 5 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/22821/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c<br>index dea2c0b..09957ba 100644<br>--- a/util/cbmem/cbmem.c<br>+++ b/util/cbmem/cbmem.c<br>@@ -501,16 +501,16 @@<br> {<br>      tick_freq_mhz = table_tick_freq_mhz;<br> <br>-      /* Honor table frequency. */<br>- if (tick_freq_mhz)<br>-           return;<br>-<br>-   tick_freq_mhz = arch_tick_frequency();<br>+       /* Honor table frequency if present. */<br>+      if (!tick_freq_mhz)<br>+          tick_freq_mhz = arch_tick_frequency();<br> <br>     if (!tick_freq_mhz) {<br>                 fprintf(stderr, "Cannot determine timestamp tick frequency.\n");<br>            exit(1);<br>      }<br>+<br>+ debug("Timestamp tick frequency: %ld MHz\n", tick_freq_mhz);<br> }<br> <br> u64 arch_convert_raw_ts_entry(u64 ts)<br></pre><p>To view, visit <a href="https://review.coreboot.org/22821">change 22821</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/22821"/><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: I02286fa67919e70a3592cdbcc1c9ca2991b7f385 </div>
<div style="display:none"> Gerrit-Change-Number: 22821 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Martin Roth <martinroth@google.com> </div>