1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

Properly implement the cond_resched() function macro in the LinuxKPI.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-01-31 13:40:36 +00:00
parent 6a8b7aa424
commit cb57d1dd30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328623

View File

@ -110,7 +110,7 @@ put_task_struct(struct task_struct *task)
linux_free_current(task);
}
#define cond_resched() if (!cold) sched_relinquish(curthread)
#define cond_resched() do { if (!cold) sched_relinquish(curthread); } while (0)
#define yield() kern_yield(PRI_UNCHANGED)
#define sched_yield() sched_relinquish(curthread)