lkml.org 
[lkml]   [2012]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Round the calculated scale factor in set_cyc2ns_scale()
On 12/05/2012 06:16 AM, Bernd Faust wrote:
> During some experiments with an external clock (in a FPGA), we saw that
> the TSC clock drifted approx. 2.5ms per second.
>
> This drift was caused by the current way of calculating the scale.
> In our case cpu_khz had a value of 3292725. This resulted in a scale
> value of 310. But when doing the calculation by hand it shows that the
> actual value is 310.9886188491, so a value of 311 would be more precise.
>
> With this change the value is rounded.
>
> Signed-off-by: Bernd Faust <berndfaust@gmail.com>

Thanks for sending this in! I've queued it, but because I was slow here,
it will have to wait for 3.9.

Sorry for the delay, and thanks again!
-john



\
 
 \ /
  Last update: 2012-12-19 20:01    [W:0.076 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site