Re: Ktimer / -rt9 (+custom) monotonic_clock going backwards.
From: Steven Rostedt
Date: Thu Oct 20 2005 - 01:39:27 EST
On Wed, 19 Oct 2005, Ingo Molnar 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 :-)
-- Steve
Index: linux-2.6.14-rc4-rt12/kernel/ktimers.c
===================================================================
--- linux-2.6.14-rc4-rt12.orig/kernel/ktimers.c 2005-10-20 02:15:17.000000000 -0400
+++ linux-2.6.14-rc4-rt12/kernel/ktimers.c 2005-10-20 02:33:38.000000000 -0400
@@ -971,7 +971,7 @@
}
return prev;
}
-
+ per_cpu(prev_mono_time, cpu) = now;
return now;
}
-
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/