Re: Ktimer / -rt9 (+custom) monotonic_clock going backwards.

From: Ingo Molnar
Date: Thu Oct 20 2005 - 02:01:05 EST



* Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> > should be monotone - the latest -rt kernels include a debugging check
> > for the monotonicity of do_get_ktime_mono().
>
> Hi Ingo,
>
> Hmm, I think this will help in that debugging check :-)

> + per_cpu(prev_mono_time, cpu) = now;
> return now;
> }

*blush*, applied.

I was already wondering a bit why that check never triggered for anyone.
It is easy to have a non-monotonic clock (there's lots of crappy hw and
the gettimeofday code has to work hard) and the effects of time warps
are subtle, if noticeable at all, so i expected some detections.

i have released -rt13 with another change: the other timer warning is
only printed once. (a steady stream of messages is not helpful)

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/