Re: [PATCH] sched: avoid unnecessary overflow in sched_clock

From: Peter Zijlstra
Date: Wed Nov 16 2011 - 03:56:48 EST


On Tue, 2011-11-15 at 23:08 -0800, Paul Turner wrote:
> Probably a good idea -- This especially sucks rocks in the sched_clock_stable==1
> case; resulting in it coming straight back out of sched_clock_cpu() and trashing
> rq->clock.

There's another problem there in that TSC will wrap too soon and things
will blow up in your face that way.


--
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/