linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* timekeeping_adjust may set mult to 0
@ 2013-02-11 15:48 David Engraf
  2013-02-15 22:34 ` John Stultz
  0 siblings, 1 reply; 3+ messages in thread
From: David Engraf @ 2013-02-11 15:48 UTC (permalink / raw)
  To: John Stultz, Thomas Gleixner; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-26 13:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-11 15:48 timekeeping_adjust may set mult to 0 David Engraf
2013-02-15 22:34 ` John Stultz
2013-02-26 13:05   ` David Engraf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).