From a259284b74fbfa2a84128bdfb2d10f5526033ed8 Mon Sep 17 00:00:00 2001 From: hselasky Date: Thu, 1 Feb 2018 13:17:42 +0000 Subject: [PATCH] MFC r328623: Properly implement the cond_resched() function macro in the LinuxKPI. Sponsored by: Mellanox Technologies git-svn-id: svn://svn.freebsd.org/base/stable/9@328657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/ofed/include/linux/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ofed/include/linux/sched.h b/sys/ofed/include/linux/sched.h index da2535945..2a541d385 100644 --- a/sys/ofed/include/linux/sched.h +++ b/sys/ofed/include/linux/sched.h @@ -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) -- 2.42.0