Merge LinuxKPI changes from DragonflyBSD:

- Implement schedule_timeout().

Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2015-10-19 10:57:56 +00:00
parent da7c18e051
commit e6d1c6e382
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289566

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