diff options
| author | 2019-06-22 20:30:42 +0000 | |
|---|---|---|
| committer | 2019-06-22 20:30:42 +0000 | |
| commit | e9959c3eed29c9dae133cfee8d61a9620430c8d1 (patch) | |
| tree | 8f9ed2c195a4f4e8ff791cf3f7ef764021884c68 /gnu/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | |
| parent | Make computation of re-challenge timeout more obvious (diff) | |
| download | wireguard-openbsd-e9959c3eed29c9dae133cfee8d61a9620430c8d1.tar.xz wireguard-openbsd-e9959c3eed29c9dae133cfee8d61a9620430c8d1.zip | |
Use timeout_add_msec(9)
hz can simply be reduced has the code wants to wait
(period * hz) / 1000 [ticks] = period / 1000 [s] = period [ms].
With the zero check, this perfectly matches the millisecond version.
This conversion by itself also lifts the implicit expection of the period
to be evenly divisible by ten; in case it was not, integer division
would truncate it.
See /sys/wscons/wskbd.c for how the period is set up.
OK mpi
Diffstat (limited to 'gnu/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions
