<p>Furquan Shaikh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25044">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cpu/x86/mp_init: Print amount of time it takes in bsp_do_flight_plan<br><br>Since the timeout in bsp_do_flight_plan is bumped up to 1 second, this<br>change adds a print to indicate the amount of time it took for all the<br>APs to check-in.<br><br>TEST=Verified on Nami that it prints:<br>"bsp_do_flight_plan done after 395 msecs."<br><br>Change-Id: I4c8380e94305ed58453ed18b341b3b923949d7a8<br>Signed-off-by: Furquan Shaikh <furquan@google.com><br>---<br>M src/cpu/x86/mp_init.c<br>1 file changed, 6 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/44/25044/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c</span><br><span>index 23aea14..409caa5 100644</span><br><span>--- a/src/cpu/x86/mp_init.c</span><br><span>+++ b/src/cpu/x86/mp_init.c</span><br><span>@@ -547,6 +547,9 @@</span><br><span>       const int timeout_us = 1000000;</span><br><span>      const int step_us = 100;</span><br><span>     int num_aps = mp_params->num_cpus - 1;</span><br><span style="color: hsl(120, 100%, 40%);">+     struct stopwatch sw;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        stopwatch_init(&sw);</span><br><span> </span><br><span>         for (i = 0; i < mp_params->num_records; i++) {</span><br><span>                 struct mp_flight_record *rec = &mp_params->flight_plan[i];</span><br><span>@@ -566,6 +569,9 @@</span><br><span> </span><br><span>          release_barrier(&rec->barrier);</span><br><span>       }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   printk(BIOS_INFO, "%s done after %ld msecs.\n", __func__,</span><br><span style="color: hsl(120, 100%, 40%);">+          stopwatch_duration_msecs(&sw));</span><br><span>   return ret;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25044">change 25044</a>. To unsubscribe, or for help writing mail filters, 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/25044"/><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: I4c8380e94305ed58453ed18b341b3b923949d7a8 </div>
<div style="display:none"> Gerrit-Change-Number: 25044 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Furquan Shaikh <furquan@google.com> </div>