diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-12 15:05:50 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-25 16:42:42 +0200 |
commit | 21c6bb547d0d46a6ce36b7e1026b62548c6acfc1 (patch) | |
tree | bce4d65b9f48ec337f92172572767c25f43a3416 /src/noise.h | |
parent | compat: unify custom function prefix/suffix (diff) | |
download | wireguard-monolithic-historical-21c6bb547d0d46a6ce36b7e1026b62548c6acfc1.tar.xz wireguard-monolithic-historical-21c6bb547d0d46a6ce36b7e1026b62548c6acfc1.zip |
global: switch to coarse ktime
Coarse ktime is broken until [1] in 5.2 and kernels without the
backport, so we use fallback code there.
The fallback code has also been improved significantly. It now only uses
slower clocks on kernels < 3.17, at the expense of some accuracy we're
not overly concerned about.
[1] https://lore.kernel.org/lkml/tip-e3ff9c3678b4d80e22d2557b68726174578eaf52@git.kernel.org/
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'src/noise.h')
-rw-r--r-- | src/noise.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/noise.h b/src/noise.h index 9c2cc62..2533237 100644 --- a/src/noise.h +++ b/src/noise.h @@ -13,7 +13,6 @@ #include <linux/atomic.h> #include <linux/rwsem.h> #include <linux/mutex.h> -#include <linux/ktime.h> #include <linux/kref.h> union noise_counter { |