2 dnl # 4.18: ktime_get_coarse_real_ts64() replaces current_kernel_time64().
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME_GET_COARSE_REAL_TS64], [
5 ZFS_LINUX_TEST_SRC([ktime_get_coarse_real_ts64], [
9 ktime_get_coarse_real_ts64(&ts);
13 AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64], [
14 AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists])
15 ZFS_LINUX_TEST_RESULT([ktime_get_coarse_real_ts64], [
17 AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64, 1,
18 [ktime_get_coarse_real_ts64() exists])
25 dnl # 4.18: ktime_get_raw_ts64() replaces getrawmonotonic64().
27 AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME_GET_RAW_TS64], [
28 ZFS_LINUX_TEST_SRC([ktime_get_raw_ts64], [
32 ktime_get_raw_ts64(&ts);
36 AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_RAW_TS64], [
37 AC_MSG_CHECKING([whether ktime_get_raw_ts64() exists])
38 ZFS_LINUX_TEST_RESULT([ktime_get_raw_ts64], [
40 AC_DEFINE(HAVE_KTIME_GET_RAW_TS64, 1,
41 [ktime_get_raw_ts64() exists])
47 AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME], [
48 ZFS_AC_KERNEL_SRC_KTIME_GET_COARSE_REAL_TS64
49 ZFS_AC_KERNEL_SRC_KTIME_GET_RAW_TS64
52 AC_DEFUN([ZFS_AC_KERNEL_KTIME], [
53 ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64
54 ZFS_AC_KERNEL_KTIME_GET_RAW_TS64