From e6d1c6e382be2d243da728b49cab8abe5a221f3e Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Mon, 19 Oct 2015 10:57:56 +0000 Subject: [PATCH] Merge LinuxKPI changes from DragonflyBSD: - Implement schedule_timeout(). Sponsored by: Mellanox Technologies --- sys/ofed/include/linux/sched.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/ofed/include/linux/sched.h b/sys/ofed/include/linux/sched.h index da25359456f..c2fb8dfd141 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_ */