diff options
author | 2013-05-06 00:15:11 +0000 | |
---|---|---|
committer | 2013-05-06 00:15:11 +0000 | |
commit | 9a77559928b18e8e96f6ba5c37079e9f088306b6 (patch) | |
tree | 3e08427108efe9581406d2108cce1c8340607d38 /sys/kern/kern_rwlock.c | |
parent | Initialize channel ranges of new slots to full sub-device channels. (diff) | |
download | wireguard-openbsd-9a77559928b18e8e96f6ba5c37079e9f088306b6.tar.xz wireguard-openbsd-9a77559928b18e8e96f6ba5c37079e9f088306b6.zip |
the use of modern intel performance counter msrs to measure the number of
cycles per second isnt reliable, particularly inside "virtual" machines.
cpuspeed can be calculated as 0, which causes a divide by zero later on
which is bad.
this goes to more effort to detect if the performance counters are in use
by the hypervisor, or detecting if they gave us a cpuspeed of 0 so we can
fall through to using rdtsc.
ok jsg@
Diffstat (limited to 'sys/kern/kern_rwlock.c')
0 files changed, 0 insertions, 0 deletions