Digging in LKML, looks like someone proposed a patch to expose tsc_khz
but it was rejected because not all platforms support constant timer
and exposing this would encourage users to use rdtsc.
https://lwn.net/Articles/388188/
I was actually not hoping to get aid from the kernel, but to have some
I didn't think about it at first, but since the kernel uses tsc as a
clock source, I'd better have a look at what it does.
Note that there are some tsc calibration specific functions for MID
and atom platforms, but I assume the main one is the most interesting
one.
http://lxr.free-electrons.com/s
Hi,
In all recent Intel hardware, rdtsc is providing number of ticks since
boot, with a constant rate, and is equal among CPUs.
Vol III 17.14
For Pentium 4 processors, (...): the time-stamp counter increments at
a constant rate. That rate may be set by the
maximum core-clock to bus-clock ratio of