mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
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