mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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 18d303b05f)
This commit is contained in:
parent
2b503ba64a
commit
0a8cab2b60
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue