Author: hselasky
Date: Fri Mar  2 08:58:32 2018
New Revision: 330273
URL: https://svnweb.freebsd.org/changeset/base/330273

Log:
  Implement ktime_get_raw() function in the LinuxKPI.
  
  MFC after:    1 week
  Submitted by: Johannes Lundberg <johal...@gmail.com>
  Sponsored by: Mellanox Technologies
  Sponsored by: Limelight Networks

Modified:
  head/sys/compat/linuxkpi/common/include/linux/ktime.h

Modified: head/sys/compat/linuxkpi/common/include/linux/ktime.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/ktime.h       Fri Mar  2 
08:56:15 2018        (r330272)
+++ head/sys/compat/linuxkpi/common/include/linux/ktime.h       Fri Mar  2 
08:58:32 2018        (r330273)
@@ -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)
 {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to