]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
linuxkpi: Add __var_waitqueue
authorEmmanuel Vadot <manu@FreeBSD.org>
Fri, 11 Feb 2022 10:33:59 +0000 (11:33 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Sat, 5 Mar 2022 11:12:43 +0000 (12:12 +0100)
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

index 17716583399fe0b1500296c9cae5f103015f0955..66c1149da4325637c6e8e9413d5bd00c801565fa 100644 (file)
@@ -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__ */