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:
hselasky 2018-05-28 10:54:24 +00:00
parent c4a3a5d220
commit 7a086faf53

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