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:
parent
d901abf167
commit
8554bc585b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user