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 <[email protected]>
  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);                                  \
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to