Author: hselasky
Date: Mon May 28 10:54:24 2018
New Revision: 334281
URL: https://svnweb.freebsd.org/changeset/base/334281

Log:
  Implement wait_event_killable() in the LinuxKPI.
  
  Requested by: Johannes Lundberg <[email protected]>
  MFC after:    1 week
  Sponsored by: Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/wait.h

Modified: head/sys/compat/linuxkpi/common/include/linux/wait.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/wait.h        Mon May 28 
10:51:39 2018        (r334280)
+++ head/sys/compat/linuxkpi/common/include/linux/wait.h        Mon May 28 
10:54:24 2018        (r334281)
@@ -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);                                  \
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to