Re: [patch 1/3] sched: init rt_avg stat whenever rq comes online

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, August 17, 2010 - 1:51 am

On Mon, 2010-08-16 at 21:25 +0200, Peter Zijlstra wrote:

That's actually broken, you only want a single offset, otherwise we
de-sync the TSC, which is bad.

So simply store the sched_clock() value at suspend time on the single
CPU that is still running, then on resume make sure sched_clock()
continues there by adding that stamp to all CPU offsets.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 1/3] sched: init rt_avg stat whenever rq comes ..., Peter Zijlstra, (Tue Aug 17, 1:51 am)
[tip:sched/urgent] x86, tsc, sched: Recompute cyc2ns_offse ..., tip-bot for Suresh S ..., (Fri Aug 20, 7:16 am)
[tip:sched/urgent] sched: Move sched_avg_update() to updat ..., tip-bot for Suresh S ..., (Thu Sep 9, 12:45 pm)