diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-04 11:14:41 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-04 11:15:48 +0200 |
commit | 87b809b88e1bf41a9c142d22a6e29f08d992ca41 (patch) | |
tree | 5d8cfcd9d6cc7709e027fa73cd68ecd0585e716e /src/compat/compat.h | |
parent | version: bump snapshot (diff) | |
download | wireguard-linux-compat-87b809b88e1bf41a9c142d22a6e29f08d992ca41.tar.xz wireguard-linux-compat-87b809b88e1bf41a9c142d22a6e29f08d992ca41.zip |
compat: define conversion constants for ancient kernels
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | src/compat/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 239fa58..6288550 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -406,7 +406,7 @@ static inline u64 __compat_jiffies64_to_nsecs(u64 j) { #if !(NSEC_PER_SEC % HZ) return (NSEC_PER_SEC / HZ) * j; -# else +#else return div_u64(j * HZ_TO_USEC_NUM, HZ_TO_USEC_DEN) * 1000; #endif } |