Re: [patch 17/17] Add a sched_clock paravirt_op

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <ak@...>
Cc: Andrew Morton <akpm@...>, <virtualization@...>, lkml <linux-kernel@...>, Zachary Amsden <zach@...>, Dan Hecht <dhecht@...>, john stultz <johnstul@...>
Date: Monday, April 2, 2007 - 2:47 am

Andi Kleen wrote:

Cleaner how?  This seems pretty straightforward to me.  Xen can return a
clock measuring unstolen nanoseconds, which maps directly to the
sched_clock interface, doesn't need any of the existing sched_clock
code.  I suppose I could map the Xen interface onto some abstract
"cycles" notion and hook it into the tsc machinery, but it seems like it
would be a forced fit.  In general, my approach has been to choose the
higher-level interface over a lower-level one, all other things being equal.

The only reason I hoisted the cycles_2_ns stuff was for vmi.  It returns
a tsc-like cycles interface, and so it can make use of the existing
cycles_2_ns code (though I don't think a changing timebase is an issue).

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

Messages in current thread:
[patch 17/17] Add a sched_clock paravirt_op, Jeremy Fitzhardinge, (Mon Apr 2, 1:57 am)
Re: [patch 17/17] Add a sched_clock paravirt_op, Andi Kleen, (Mon Apr 2, 2:09 am)
Re: [patch 17/17] Add a sched_clock paravirt_op, Jeremy Fitzhardinge, (Mon Apr 2, 2:47 am)
Re: [patch 17/17] Add a sched_clock paravirt_op, Andi Kleen, (Mon Apr 2, 2:50 am)
Re: [patch 17/17] Add a sched_clock paravirt_op, Jeremy Fitzhardinge, (Mon Apr 2, 3:06 am)