mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: Add ms_to_ktime
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 week (cherry picked from commit aafe4126f7942daef5b7d522bd4fafc5deddb0bf)
This commit is contained in:
parent
73b587e2ee
commit
9c67525fc3
1 changed files with 6 additions and 0 deletions
|
|
@ -69,6 +69,12 @@ ktime_to_ms(ktime_t kt)
|
|||
return (ktime_divns(kt, NSEC_PER_MSEC));
|
||||
}
|
||||
|
||||
static inline ktime_t
|
||||
ms_to_ktime(uint64_t ms)
|
||||
{
|
||||
return (ms * NSEC_PER_MSEC);
|
||||
}
|
||||
|
||||
static inline struct timeval
|
||||
ktime_to_timeval(ktime_t kt)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue