Any hardware timers avialable to user-space?
From: Paul Sheer
Date: Fri Jan 07 2011 - 15:51:14 EST
Hi there,
I'm looking for a way to return the value of any hardware clock to user-space:
Dan Bernstein's 'clockspeed' (http://cr.yp.to/clockspeed.html) package
relies on the Pentium RDTSC instruction on Linux or gethrtime() on Solaris.
On Solaris, gethrtime() is the same as clock_gettime(CLOCK_MONOTONIC,...)
On Linux clock_gettime(CLOCK_MONOTONIC,...) incurs adjustments
(so sayeth lkml archives) and doesn't seem suitable for implementing
the kind of "ntp" client that is clockspeed's purpose.
Mentioned in Documentation/kvm/timekeeping.txt are a number of PC
hardware clocks like the 82C54.
Are any of these available to user space?
Are there any plans to create a gethrtime() function like on Solaris?
Has anyone suggested a new clock_gettime(CLOCK_HARDWARE,...) system call?
Many thanks
-paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/