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:
parent
2a3ec12831
commit
bd40dea7e2
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user