aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-04 11:14:41 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-04 11:15:48 +0200
commitc31f8664cff475b8f4160506e582fc423c71f381 (patch)
tree03ae9a01c8bedcfe7c4e5a25f87a2d3e3614a200 /src/compat/compat.h
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-c31f8664cff475b8f4160506e582fc423c71f381.tar.xz
wireguard-monolithic-historical-c31f8664cff475b8f4160506e582fc423c71f381.zip
compat: define conversion constants for ancient kernels
Diffstat (limited to '')
-rw-r--r--src/compat/compat.h2
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
}