Implement wait_event_killable() in the LinuxKPI.

Requested by:	Johannes Lundberg <johalun0@gmail.com>
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-05-28 10:54:24 +00:00
parent 2a3ec12831
commit bd40dea7e2

View File

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