Re: [BUG] sched: clock wrap bug in 2.6.35-stable kills scheduling

From: Peter Zijlstra
Date: Mon Jun 25 2012 - 15:33:32 EST


On Mon, 2012-06-25 at 20:49 +0200, Thomas Lange wrote:
> Commit fe44d62 removed the if-clause that caused the problem. Most likely, this
> solved the problem.

Ah, probably. IIRC we also fixed the short wrap of those arm clocks
since.

> > If anything, I think something like the below ought to cure things.
>
> I agree. Either we make sure that sched_clock() never wraps or if it wraps,
> that it wraps shortly after boot to catch problems early.

Right, sched_clock() should only ever wrap on the full u64.
--
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/