On Fri, Feb 09, 2007 at 11:06:06PM +1100, Rusty Russell wrote: > On Fri, 2007-02-09 at 10:32 +0100, Andi Kleen wrote: > > On Friday 09 February 2007 10:15, Rusty Russell wrote: > > > > > tsc_khz: > > > Simplest way of telling the guest how to interpret the TSC > > > counter. > > > > > > Are you sure this will work with varying TSC frequencies? > > I'm actually quite sure it doesn't (there's a FIXME in the lguest code). > Given the debate over how useful the TSC was, I originally didn't use > it, but (1) it's simple, and (2) when it doesn't change, it's pretty > accurate. But when it changes users become pretty unhappy > > > In general you should get this from cpufreq. > > Hmm, ok, I'll bite: how? Time is a mystery I've avoided so far 8) the old x86-64 time.c (before -mm) has a example in #ifdef CONFIG_CPUFREQ -Andi