svn commit: r334281 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Mon May 28 10:54:25 UTC 2018
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 <johalun0 at gmail.com>
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); \
More information about the svn-src-head
mailing list