diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-04 10:18:42 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-04 11:13:39 +0000 |
commit | 5b872e8cf9f5b6800512005abb310596dc9ea771 (patch) | |
tree | 977e1b5e115db83b20357b90d63b54eb83b148b7 /undocumented.h | |
parent | Spin less and more efficiently (diff) | |
download | wintun-5b872e8cf9f5b6800512005abb310596dc9ea771.tar.xz wintun-5b872e8cf9f5b6800512005abb310596dc9ea771.zip |
Use performance counter for less spinning
Previously we had to spin for a minimum of 15ms because the tick
interval is 156250 on NT. On linux, usually trips to the high
performance timers are discouraged because if they don't hit the RDTSC
path (due to being unstable or the like), they hit more expensive
hardware. I assume that's probably the same on NT, but all of tcpip.sys
and ndis.sys uses the performance counters too, so what are we going to
do?
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'undocumented.h')
0 files changed, 0 insertions, 0 deletions