summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2015-10-19 10:57:56 +0000
committerhselasky <hselasky@FreeBSD.org>2015-10-19 10:57:56 +0000
commitc58bf9145bf400f6f98e6f221d2f329099acb120 (patch)
tree291b5f7fd3cd0dd69432e51b5c7c7c5ae139fc04 /sys/ofed
parent676076548047bc0a4249b444ca2ac6ef9763ddfe (diff)
downloadFreeBSD-src-c58bf9145bf400f6f98e6f221d2f329099acb120.zip
FreeBSD-src-c58bf9145bf400f6f98e6f221d2f329099acb120.tar.gz
Merge LinuxKPI changes from DragonflyBSD:
- Implement schedule_timeout(). Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/include/linux/sched.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/ofed/include/linux/sched.h b/sys/ofed/include/linux/sched.h
index da25359..c2fb8df 100644
--- a/sys/ofed/include/linux/sched.h
+++ b/sys/ofed/include/linux/sched.h
@@ -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_ */
OpenPOWER on IntegriCloud