lkml.org 
[lkml]   [2013]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecttimekeeping_adjust may set mult to 0
Hi,

I have encountered a problem when a linux system uses a clocksource with
mult = 1 and shift = 0 (clocksource cycle = nanoseconds). It may happen
that the function timekeeping_adjust reduces the value of mult to 0 when
error is lower than the interval [1].
As soon as timekeeper.mult is 0, ktime_get will no longer work because
it uses timekeeping_get_ns which converts the cycle to nanoseconds with
mult as 0 and the system clocksource returns always 0.

Best regards
David Engraf


[1] http://lxr.linux.no/linux+v3.0.62/kernel/time/timekeeping.c#L821


\
 
 \ /
  Last update: 2013-02-11 17:41    [W:0.058 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site