Author: hselasky
Date: Mon Oct 19 10:57:56 2015
New Revision: 289566
URL: https://svnweb.freebsd.org/changeset/base/289566

Log:
  Merge LinuxKPI changes from DragonflyBSD:
  - Implement schedule_timeout().
  
  Sponsored by: Mellanox Technologies

Modified:
  head/sys/ofed/include/linux/sched.h

Modified: head/sys/ofed/include/linux/sched.h
==============================================================================
--- head/sys/ofed/include/linux/sched.h Mon Oct 19 10:56:32 2015        
(r289565)
+++ head/sys/ofed/include/linux/sched.h Mon Oct 19 10:57:56 2015        
(r289566)
@@ -107,4 +107,15 @@ do {                                                       
                \
 
 #define        sched_yield()   sched_relinquish(curthread)
 
+static inline long
+schedule_timeout(signed long timeout)
+{
+       if (timeout < 0)
+               return 0;
+
+       pause("lstim", timeout);
+
+       return 0;
+}
+
 #endif /* _LINUX_SCHED_H_ */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to