]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Merge LinuxKPI changes from DragonflyBSD:
authorhselasky <hselasky@FreeBSD.org>
Mon, 19 Oct 2015 10:57:56 +0000 (10:57 +0000)
committerhselasky <hselasky@FreeBSD.org>
Mon, 19 Oct 2015 10:57:56 +0000 (10:57 +0000)
- Implement schedule_timeout().

Sponsored by: Mellanox Technologies

sys/ofed/include/linux/sched.h

index da25359456febc6a7da5921650082c7911cc3cc5..c2fb8dfd14182bd32711f809b2bdf26353de9476 100644 (file)
@@ -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_ */