svn commit: r328657 - stable/9/sys/ofed/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Feb 1 13:17:43 UTC 2018
Author: hselasky
Date: Thu Feb 1 13:17:42 2018
New Revision: 328657
URL: https://svnweb.freebsd.org/changeset/base/328657
Log:
MFC r328623:
Properly implement the cond_resched() function macro in the LinuxKPI.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/ofed/include/linux/sched.h
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/ofed/include/linux/sched.h
==============================================================================
--- stable/9/sys/ofed/include/linux/sched.h Thu Feb 1 13:16:11 2018 (r328656)
+++ stable/9/sys/ofed/include/linux/sched.h Thu Feb 1 13:17:42 2018 (r328657)
@@ -103,7 +103,7 @@ do { \
kick_proc0(); \
} while (0)
-#define cond_resched() if (!cold) sched_relinquish(curthread)
+#define cond_resched() do { if (!cold) sched_relinquish(curthread); } while (0)
#define sched_yield() sched_relinquish(curthread)
More information about the svn-src-stable-9
mailing list