Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2018 13:16:12 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r328656 - stable/10/sys/ofed/include/linux
Message-ID:  <201802011316.w11DGCin015396@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Feb  1 13:16:11 2018
New Revision: 328656
URL: https://svnweb.freebsd.org/changeset/base/328656

Log:
  MFC r328623:
  Properly implement the cond_resched() function macro in the LinuxKPI.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/10/sys/ofed/include/linux/sched.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ofed/include/linux/sched.h
==============================================================================
--- stable/10/sys/ofed/include/linux/sched.h	Thu Feb  1 13:10:58 2018	(r328655)
+++ stable/10/sys/ofed/include/linux/sched.h	Thu Feb  1 13:16:11 2018	(r328656)
@@ -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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802011316.w11DGCin015396>