summaryrefslogtreecommitdiffstats
path: root/include/os
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 /include/os
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
Diffstat (limited to 'include/os')
-rw-r--r--include/os/linux/spl/sys/time.h8
1 files changed, 0 insertions, 8 deletions
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);
}