Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2018 07:37:38 +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-11@freebsd.org
Subject:   svn commit: r334760 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201806070737.w577bcI6056736@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Jun  7 07:37:38 2018
New Revision: 334760
URL: https://svnweb.freebsd.org/changeset/base/334760

Log:
  MFC r334281:
  Implement wait_event_killable() in the LinuxKPI.
  
  Requested by:	Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/wait.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/wait.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/wait.h	Thu Jun  7 07:36:44 2018	(r334759)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/wait.h	Thu Jun  7 07:37:38 2018	(r334760)
@@ -170,6 +170,11 @@ int linux_wait_event_common(wait_queue_head_t *, wait_
 	    NULL);							\
 })
 
+#define	wait_event_killable(wqh, cond) ({				\
+	__wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT,		\
+	    TASK_INTERRUPTIBLE, NULL);					\
+})
+
 #define	wait_event_interruptible(wqh, cond) ({				\
 	__wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT,		\
 	    TASK_INTERRUPTIBLE, NULL);					\



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