lkml.org 
[lkml]   [2003]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] linux-2.5.64_monotonic-clock_A1
Hi John,

I like the idea of making the monotonic clock use the same
mechanism as the normal timeofday clock.

When I was doing my alternative Posix timers patch, I modified
your get_offset() mechanism to return nanoseconds and added a
"struct time_spec ytime" which was updated in the same place as
xtime but was never set.

You might have a look at my patch archived here:
http://marc.theaimsgroup.com/?l=linux-kernel&m=104006731324824&w=2

Look for the function do_gettime_sinceboot_ns(). You don't have to
keep the monotonic time in cycles. It
would be nice if the timeofday clock was defined as the monotonic
clock + an offset.

Also, if I had one of those cyclone counters, I would never look at
the PIT again.

Jim Houston - Concurrent Computer Corp.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.020 / U:1.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site