Re: [patch 9/9] Make use of the Master Timer

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <ak@...>
Cc: <jbohac@...>, <linux-kernel@...>, Vojtech Pavlik <vojtech@...>, <ssouhlal@...>, <arjan@...>, <tglx@...>, <johnstul@...>, <zippel@...>, <andrea@...>
Date: Thursday, February 1, 2007 - 10:29 am

On Thu, Feb 01, 2007 at 12:36:05PM +0100, Andi Kleen wrote:

Hmm, I wasn't sure. Why is it needed? How outdated can the
result of RDTSC / RDTSCP be?

If I do:
	rdtscll(a)
	...
	rdtscll(b)
is it guaranteed that (b > a) ?


OK, thanks for spotting this. I'll change it to use __guess_mt().
(more or less equal to cycles_2_ns(), no need to maintain yet another
tsc->ns ratio just for cycles_2_ns().



OK, will do that


Because of the __vxtime.cpu[cpu].tsc_invalid flag. We may be
using the vsyscall, but when we get the cpufreq PRE- notification, we
know that TSC cannot be trusted from that point on, until the
frequency stabilises. We set the flag and until TSC becomes
reliable again, vsyscall w/ HW Master Timer read will be used.

So this is something that changes in runtime, and cannot be set
permanently on initialization...


-- 
Jiri Bohac <jbohac@suse.cz>
SUSE Labs, SUSE CZ

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

Messages in current thread:
Re: [patch 9/9] Make use of the Master Timer, Andi Kleen, (Thu Feb 1, 7:36 am)
Re: [patch 9/9] Make use of the Master Timer, Jiri Bohac, (Thu Feb 1, 10:29 am)
Re: [patch 9/9] Make use of the Master Timer, Andi Kleen, (Fri Feb 2, 3:04 am)
Re: [patch 9/9] Make use of the Master Timer, Vojtech Pavlik, (Thu Feb 1, 11:23 am)
Re: [patch 9/9] Make use of the Master Timer, Andi Kleen, (Fri Feb 2, 3:05 am)