Re: [Bug #11970] gettimeofday return a old time in mmbench

From: Ingo Molnar
Date: Thu Dec 04 2008 - 02:46:25 EST

* Rafael J. Wysocki <rjw@xxxxxxx> wrote:

> This message has been generated automatically as a part of a report
> of recent regressions.
> The following bug entry is on the current list of known regressions
> from 2.6.27. Please verify if it still should be listed and let me know
> (either way).
> Bug-Entry :
> Subject : gettimeofday return a old time in mmbench
> Submitter : alexs <alex.shi@xxxxxxxxx>
> Date : 2008-11-06 23:57 (28 days old)
> First-Bad-Commit:;a=commit;h=99ebcf8285df28f32fd2d1c19a7166e70f00309c
> Handled-By : Ingo Molnar <mingo@xxxxxxx>
> Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Yanmin Zhang <yanmin_zhang@xxxxxxxxxxxxxxx>

fixed by the patch below from John Stultz, queued up in

The bisection-blamed merge commit above likely just causes a random shift
in the timings or compiler optimization conditions of this code - making
the bug more likely to trigger. The bug/race itself is old.