lkml.org 
[lkml]   [2008]   [Mar]   [31]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: gettimeofday() jumping into the future
FromJohn Stultz <>
DateMon, 31 Mar 2008 09:03:27 -0700
On Mon, 2008-03-31 at 10:55 +0200, Thomas Gleixner wrote:
> 
> > +     if (cycle_now < clock->cycle_last)
> > +             return 0;
> > +
> 
> No, this breaks wrapping clocksources e.g. pmtimer. We need a
> different sanity check for that TSC crap.

Yea. If you're going to do that sort of logic (which requires a costly
cmpxchg as well), it should be done in the read() function of the
clocksource.

thanks
-john




\
 
 \ /
  Last update: 2008-03-31 18:07    [from the cache]
©2003-2008