LinuxKPI: add ktime_get_boottime_ns() implementation to ktime.h

Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D30432
This commit is contained in:
Bjoern A. Zeeb 2021-05-24 18:30:33 +00:00
parent c1661d59e6
commit 18d303b05f

View File

@ -220,6 +220,13 @@ ktime_get_boottime(void)
return (timespec_to_ktime(ts)); 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 static inline ktime_t
ktime_get_real(void) ktime_get_real(void)
{ {