Merge LinuxKPI changes from DragonflyBSD:

- Implement schedule_timeout().

Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2015-10-19 10:57:56 +00:00
parent 6760765480
commit c58bf9145b

View 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_ */