aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-24 20:55:36 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commitf95d76cc28ce65d1ed46fafac329ac07cc6b60a5 (patch)
tree64250a84a27df02dc1e0f26eb65ca1fb5e798de5 /include
parentb3458270b5e3b8a124d2c9ef2802272350bc5a6b (diff)
config: remove HAVE_KTIME_GET_RAW_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')
-rw-r--r--include/os/linux/spl/sys/time.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/os/linux/spl/sys/time.h b/include/os/linux/spl/sys/time.h
index f76903705..036948d87 100644
--- a/include/os/linux/spl/sys/time.h
+++ b/include/os/linux/spl/sys/time.h
@@ -81,13 +81,8 @@ gethrestime_sec(void)
static inline hrtime_t
gethrtime(void)
{
-#if defined(HAVE_KTIME_GET_RAW_TS64)
struct timespec64 ts;
ktime_get_raw_ts64(&ts);
-#else
- struct timespec ts;
- getrawmonotonic(&ts);
-#endif
return (((hrtime_t)ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec);
}