diff options
| author | Neel Chauhan <nc@FreeBSD.org> | 2021-04-26 15:12:18 +0000 |
|---|---|---|
| committer | Neel Chauhan <nc@FreeBSD.org> | 2021-04-26 15:12:18 +0000 |
| commit | 057f145aae9a3528ccd722c8f566d740d5cafcbb (patch) | |
| tree | 10d7f98c04e4867d5c8be0e043e3ec95e726720c | |
| parent | 5f5bf88949df421ec3ccd7e14a999e8d8b9251bf (diff) | |
linuxkpi: Implement the wait_event_interruptible macro
This is needed by the drm-kmod 5.5 update and is similar in logic to the
existing wait_event_killable macro.
Reviewed by: hselasky, manu
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D29987
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/wait_bit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/wait_bit.h b/sys/compat/linuxkpi/common/include/linux/wait_bit.h index e3dddaade498..711b19da6582 100644 --- a/sys/compat/linuxkpi/common/include/linux/wait_bit.h +++ b/sys/compat/linuxkpi/common/include/linux/wait_bit.h @@ -40,6 +40,9 @@ extern wait_queue_head_t linux_var_waitq; #define wait_var_event_killable(var, cond) \ wait_event_killable(linux_var_waitq, cond) +#define wait_var_event_interruptible(var, cond) \ + wait_event_interruptible(linux_var_waitq, cond) + static inline void clear_and_wake_up_bit(int bit, void *word) { |
