]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/compat/linuxkpi/common/src/linux_compat.c
linuxkpi: Add a few wait_bit functions
authorEmmanuel Vadot <manu@FreeBSD.org>
Fri, 14 Aug 2020 08:48:17 +0000 (08:48 +0000)
committerEmmanuel Vadot <manu@FreeBSD.org>
Fri, 14 Aug 2020 08:48:17 +0000 (08:48 +0000)
commit0e123c13fef68ed92a70c47b07660681dbd22ac1
treedabc2125c88ffa016f2c7eea5b4be3fb0758e9d2
parent967fbfd9e2b7a015d5cba1491badcdf9044b28b9
linuxkpi: Add a few wait_bit functions

The linux function does a lot more than that as multiple waitqueue could be fetch
from a static table based on the hash of the argument but since in DRM it's only used
in one place just add a single variable.
We will probably need to change that in the futur but it's ok with DRM even with current
linux.

Reviewed by: hselasky
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26054
sys/compat/linuxkpi/common/include/linux/wait.h
sys/compat/linuxkpi/common/include/linux/wait_bit.h [new file with mode: 0644]
sys/compat/linuxkpi/common/src/linux_compat.c