-
- Downloads
pvclock: reuse pvclock's functionality to convert tsc to nano
This patch provides a way to, given a measurement from tsc, acquire a nanosecond figure. It works only for xen and kvm pvclocks, and I intend to use it for acquiring early boot figures. It is possible to measure the tsc frequency and with that figure out how to convert a tsc read to nanoseconds, but I don't think we should pay that price. Most of the pvclock drivers already provide that functionality, and we are not planning that many users of that interface anyway. Signed-off-by:Glauber Costa <glommer@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
Showing
- core/pvclock-abi.cc 2 additions, 11 deletionscore/pvclock-abi.cc
- drivers/clock.hh 7 additions, 0 deletionsdrivers/clock.hh
- drivers/kvmclock.cc 6 additions, 0 deletionsdrivers/kvmclock.cc
- drivers/xenclock.cc 10 additions, 0 deletionsdrivers/xenclock.cc
- include/osv/pvclock-abi.hh 15 additions, 0 deletionsinclude/osv/pvclock-abi.hh
Loading
Please register or sign in to comment