From bd40dea7e2237524d2138413986d9d1b96accd4e Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Mon, 28 May 2018 10:54:24 +0000 Subject: [PATCH] Implement wait_event_killable() in the LinuxKPI. Requested by: Johannes Lundberg MFC after: 1 week Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/linux/wait.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/wait.h b/sys/compat/linuxkpi/common/include/linux/wait.h index b73594c8578a..97673c46f6ef 100644 --- a/sys/compat/linuxkpi/common/include/linux/wait.h +++ b/sys/compat/linuxkpi/common/include/linux/wait.h @@ -170,6 +170,11 @@ int linux_wait_event_common(wait_queue_head_t *, wait_queue_t *, int, 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); \