Re: LTP - gettimeofday02 FAIL

From: Chris Wedgwood (
Date: Thu Nov 14 2002 - 16:52:09 EST

On Tue, Nov 12, 2002 at 04:11:14PM -0600, Paul Larson wrote:

    I have not been able to reproduce this on a single processor machine

    Basically, all the test does is:
    gettimeofday(&tv1, NULL);
    while(!done) {
            gettimeofday(&tv2, NULL);
            FAIL if tv2 < tv1
            tv1 = tv2;

    Any ideas on what could be causing this?

The TSC's aren't synchronized between CPUs.

This is becoming more and more of a problem and in-escapable on some
hardware so I'm starting to wonder if assuming the TSCs are even
roughly synchronized *anywhere* is a good idea.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:34 EST