<p>Stefan Sperling <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/10489">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix time delta calculations in sched_clck.c<br><br>Use osmo_clock_gettime() to read the monotonic clock instead<br>of gettimeofday() which could drift backwards.<br>This requires switching the scheduler clock from struct timeval<br>to struct timespec. Expand some variables to 64 bits in order<br>to keep types used in calculations compatible.<br><br>The previous implementation unconditionally subtracted microsecond<br>values from different time measurements, causing overflow if the<br>current measurement was taken in less of a fraction of a second<br>than the past measurement. Use timespecsub() for the subtraction<br>instead which accounts for fractions of a second correctly.<br><br>Change-Id: Ic93f90685c6d6dc28dfc4ad48c998e0eac113cf8<br>Related: OS#3467<br>---<br>M src/host/trxcon/sched_clck.c<br>M src/host/trxcon/scheduler.h<br>2 files changed, 33 insertions(+), 34 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/89/10489/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/10489">change 10489</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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://gerrit.osmocom.org/10489"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Ic93f90685c6d6dc28dfc4ad48c998e0eac113cf8 </div>
<div style="display:none"> Gerrit-Change-Number: 10489 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <ssperling@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Stefan Sperling <ssperling@sysmocom.de> </div>