summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-24 20:54:29 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commitb3458270b5e3b8a124d2c9ef2802272350bc5a6b (patch)
tree2868c6d6f6c81d68c3a0c6e8a1c4781f433743f1
parent2c84b59e73c2cf72649e1b236ca49ceb803a7305 (diff)
config: remove HAVE_KTIME_GET_COARSE_REAL_TS64
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
-rw-r--r--config/kernel-ktime.m425
-rw-r--r--include/os/linux/spl/sys/time.h8
2 files changed, 0 insertions, 33 deletions
diff --git a/config/kernel-ktime.m4 b/config/kernel-ktime.m4
index 64c3b5f90..ba9cf14a2 100644
--- a/config/kernel-ktime.m4
+++ b/config/kernel-ktime.m4
@@ -1,27 +1,4 @@
dnl #
-dnl # 4.18: ktime_get_coarse_real_ts64() replaces current_kernel_time64().
-dnl #
-AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME_GET_COARSE_REAL_TS64], [
- ZFS_LINUX_TEST_SRC([ktime_get_coarse_real_ts64], [
- #include <linux/mm.h>
- ], [
- struct timespec64 ts;
- ktime_get_coarse_real_ts64(&ts);
- ])
-])
-
-AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64], [
- AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists])
- ZFS_LINUX_TEST_RESULT([ktime_get_coarse_real_ts64], [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64, 1,
- [ktime_get_coarse_real_ts64() exists])
- ], [
- AC_MSG_RESULT(no)
- ])
-])
-
-dnl #
dnl # 4.18: ktime_get_raw_ts64() replaces getrawmonotonic64().
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME_GET_RAW_TS64], [
@@ -45,11 +22,9 @@ AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_RAW_TS64], [
])
AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME], [
- ZFS_AC_KERNEL_SRC_KTIME_GET_COARSE_REAL_TS64
ZFS_AC_KERNEL_SRC_KTIME_GET_RAW_TS64
])
AC_DEFUN([ZFS_AC_KERNEL_KTIME], [
- ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64
ZFS_AC_KERNEL_KTIME_GET_RAW_TS64
])
diff --git a/include/os/linux/spl/sys/time.h b/include/os/linux/spl/sys/time.h
index 2b3363c1c..f76903705 100644
--- a/include/os/linux/spl/sys/time.h
+++ b/include/os/linux/spl/sys/time.h
@@ -67,22 +67,14 @@ typedef struct timespec64 inode_timespec_t;
static inline void
gethrestime(inode_timespec_t *ts)
{
-#if defined(HAVE_KTIME_GET_COARSE_REAL_TS64)
ktime_get_coarse_real_ts64(ts);
-#else
- *ts = current_kernel_time64();
-#endif /* HAVE_KTIME_GET_COARSE_REAL_TS64 */
}
static inline uint64_t
gethrestime_sec(void)
{
-#if defined(HAVE_KTIME_GET_COARSE_REAL_TS64)
inode_timespec_t ts;
ktime_get_coarse_real_ts64(&ts);
-#else
- inode_timespec_t ts = current_kernel_time64();
-#endif /* HAVE_KTIME_GET_COARSE_REAL_TS64 */
return (ts.tv_sec);
}