Implement ktime_get_raw() function in the LinuxKPI.

MFC after:	1 week
Submitted by:	Johannes Lundberg <johalun0@gmail.com>
Sponsored by:	Mellanox Technologies
Sponsored by:	Limelight Networks
This commit is contained in:
Hans Petter Selasky 2018-03-02 08:58:32 +00:00
parent d901abf167
commit 8554bc585b

View File

@ -189,6 +189,15 @@ ktime_get_real_seconds(void)
return (ts.tv_sec);
}
static inline ktime_t
ktime_get_raw(void)
{
struct timespec ts;
nanotime(&ts);
return (timespec_to_ktime(ts));
}
static inline u64
ktime_get_raw_ns(void)
{