]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/compat/linuxkpi/common/src/linux_compat.c
linuxkpi: Add a few wait_bit functions
authormanu <manu@FreeBSD.org>
Fri, 14 Aug 2020 08:48:17 +0000 (08:48 +0000)
committermanu <manu@FreeBSD.org>
Fri, 14 Aug 2020 08:48:17 +0000 (08:48 +0000)
commit5000b42e448eb645c66c1bab5d0aff953da06319
treedabc2125c88ffa016f2c7eea5b4be3fb0758e9d2
parentd2c07dbc4638a6d5e69e4a0f9bc205b9f5614635
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