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:
parent
c1661d59e6
commit
18d303b05f
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user