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

From: Ingo Molnar
Date: Wed Oct 19 2005 - 10:11:24 EST



* Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> Hi Thomas,
>
> I switched my custom kernel timer to use the ktimers with the prio of
> -1 as you mentioned to me offline. I set up the timer to be monotonic
> and have a requirement that the returned time is always greater or
> equal to the last time returned from do_get_ktime_mono.
>
> Now here's the results that I got between two calls of
> do_get_ktime_mono
>
> 358.069795728 secs then later 355.981483177. Should this ever happen?

should be monotone - the latest -rt kernels include a debugging check
for the monotonicity of do_get_ktime_mono().

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/