From c31f8664cff475b8f4160506e582fc423c71f381 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 4 Jul 2019 11:14:41 +0200 Subject: compat: define conversion constants for ancient kernels --- src/compat/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compat/compat.h') 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 } -- cgit v1.2.3-59-g8ed1b