forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux 4.18: Use ktime_get_coarse_real_ts64()
Newer kernels remove current_kernel_time64(). Use ktime_get_coarse_real_ts64() in its place. Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes: openzfs#8258
- Loading branch information
1 parent
8bd2a28
commit a27c6e1
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dnl # | ||
dnl # 4.18: ktime_get_coarse_real_ts64() added. Use it in place of | ||
dnl # current_kernel_time64(). | ||
dnl # | ||
AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64], | ||
[AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists]) | ||
ZFS_LINUX_TRY_COMPILE([ | ||
#include <linux/mm.h> | ||
], [ | ||
struct timespec64 ts; | ||
ktime_get_coarse_real_ts64(&ts); | ||
], [ | ||
AC_MSG_RESULT(yes) | ||
AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64, 1, [ktime_get_coarse_real_ts64() exists]) | ||
], [ | ||
AC_MSG_RESULT(no) | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters