summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
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