<div dir="ltr">Hi All,<br>
<br>
Could anybody explain the following kernel code for me in detail ? I am<br>
royally confused on it.<br>
<br>
kernel/time/timekeeping.c<br>
<br>
timekeeping_bigadjust()<br>
{<br>
/*<br>
* Use the current error value to determine how much to look ahead.<br>
* The larger the error the slower we adjust for it to avoid problems<br>
* with losing too many ticks, otherwise we would overadjust and<br>
* produce an even larger error. The smaller the adjustment the<br>
* faster we try to adjust for it, as lost ticks can do less harm<br>
* here. This is tuned so that an error of about 1 msec is adjusted<br>
* within about 1 sec (or 2^20 nsec in 2^SHIFT_HZ ticks).<br>
*/<br>
error2 = tk->ntp_error >> (NTP_SCALE_SHIFT + 22 - 2 * SHIFT_HZ);<br>
}<br>
<br>
<br>
Thanks in advance.<div class=""><div id=":1ps" class="" tabindex="0"><img class="" src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div></div><br clear="all"><br>-- <br><span class=""><font color="#888888">Best Regards,<br>
Dong Zhu<br>
<br>
MySite: <a href="http://bluezd.info" target="_blank">http://bluezd.info</a></font></span></div>