Re: [patch 0/9] x86_64: reliable TSC-based gettimeofday

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: john stultz
Date: Thursday, February 1, 2007 - 9:56 am

On Thu, 2007-02-01 at 15:52 +0100, Jiri Bohac wrote:

The first step here shouldn't be too difficult. Just create a _read
function that uses your code to return monotonic TSC cycles (instead of
nanoseconds w/ gettimeofday).  Then just create a clocksource structure
for it.

The harder part will be the vsyscall, as you will need extra per cpu
data in the vsyscall read. I had some test code for this situation
awhile back, so if you get the first part functioning correctly (just a
clocksource w/o a vread pointer), I'll gladly help you get the vsyscall
bits working.

thanks
-john


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

Messages in current thread:
Re: [patch 0/9] x86_64: reliable TSC-based gettimeofday, Andrea Arcangeli, (Thu Feb 1, 4:53 am)
Re: [patch 0/9] x86_64: reliable TSC-based gettimeofday, Andrea Arcangeli, (Thu Feb 1, 5:54 am)
Re: [patch 0/9] x86_64: reliable TSC-based gettimeofday, john stultz, (Thu Feb 1, 9:56 am)
Re: [patch 0/9] x86_64: reliable TSC-based gettimeofday, Vojtech Pavlik, (Thu Feb 1, 12:41 pm)
Re: [patch 0/9] x86_64: reliable TSC-based gettimeofday, Andrew Morton, (Thu Feb 1, 9:22 pm)