git: 090eb6f38850 - stable/13 - linuxkpi: Add __var_waitqueue
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Mar 2022 11:34:15 UTC
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=090eb6f388507b5b6504863f33c2d648d7ea076a commit 090eb6f388507b5b6504863f33c2d648d7ea076a Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-02-11 10:33:59 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-03-05 11:12:43 +0000 linuxkpi: Add __var_waitqueue This returns the wait queue based on the object but in LinuxKPI we only have one waitqueue for this. Reviewed by: hselasky, bz MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34250 (cherry picked from commit cb15ed7da2be02b108d732e41bb6e68febf93f90) --- sys/compat/linuxkpi/common/include/linux/wait_bit.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/wait_bit.h b/sys/compat/linuxkpi/common/include/linux/wait_bit.h index 17716583399f..66c1149da432 100644 --- a/sys/compat/linuxkpi/common/include/linux/wait_bit.h +++ b/sys/compat/linuxkpi/common/include/linux/wait_bit.h @@ -64,4 +64,10 @@ wake_up_var(void *var) wake_up(&linux_var_waitq); } +static inline wait_queue_head_t * +__var_waitqueue(void *p) +{ + return (&linux_var_waitq); +} + #endif /* __LINUXKPI_LINUX_WAITBIT_H__ */