git: 0a8cab2b6093 - stable/13 - LinuxKPI: add ktime_get_boottime_ns() implementation to ktime.h
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Jul 18 00:36:22 UTC 2021
The branch stable/13 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=0a8cab2b60936ce34b4aab67e853c2fd672ef79d
commit 0a8cab2b60936ce34b4aab67e853c2fd672ef79d
Author: Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-05-24 18:30:33 +0000
Commit: Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-07-18 00:35:00 +0000
LinuxKPI: add ktime_get_boottime_ns() implementation to ktime.h
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30432
(cherry picked from commit 18d303b05f28acf005dad3f2ffbbec4895181dde)
---
sys/compat/linuxkpi/common/include/linux/ktime.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/ktime.h b/sys/compat/linuxkpi/common/include/linux/ktime.h
index e480de3181a9..1475674a12e6 100644
--- a/sys/compat/linuxkpi/common/include/linux/ktime.h
+++ b/sys/compat/linuxkpi/common/include/linux/ktime.h
@@ -220,6 +220,13 @@ ktime_get_boottime(void)
return (timespec_to_ktime(ts));
}
+static inline uint64_t
+ktime_get_boottime_ns(void)
+{
+
+ return (ktime_to_ns(ktime_get_boottime()));
+}
+
static inline ktime_t
ktime_get_real(void)
{
More information about the dev-commits-src-all
mailing list