diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-10-06 13:33:54 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-10-06 13:33:54 +0000 |
commit | a7b6bd638fbf15f75141aef63f6c596af53724bf (patch) | |
tree | 71c87ce5dd424dc4ecb2bfa3b5a68a980a9ccd56 /games | |
parent | 85f7eb3b0d5b7b1427f51ed23f603b9456f4e260 (diff) |
Recalibrate TSC timecounter with HPET and PM timer
If frequency of an invariant (non-stop) time stamp counter is measured
using an independent working timecounter that has a known frequency, we
can assume that the measured TSC frequency is as good as the resolution
of the timecounter that we use to perform the measurement. This lets us
switch from this high quality but expensive source to the cheaper TSC
without sacrificing precision on a wide range of modern CPUs.
From Adam Steen <adam@adamsteen.com.au> with tweaks from reyk@ and myself.
Tested by brynet@, sthen@ and others, OK mlarkin, sthen
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions