Merge LinuxKPI changes from DragonflyBSD:
- Implement schedule_timeout(). Sponsored by: Mellanox Technologies
This commit is contained in:
parent
da7c18e051
commit
e6d1c6e382
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289566
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user