svn commit: r334760 - stable/11/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Thu Jun 7 07:37:39 UTC 2018


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 at 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);					\


More information about the svn-src-stable-11 mailing list