mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue