With the update of the sleep API the linux emulation of their wait API,
authorclaudio <claudio@openbsd.org>
Tue, 18 Jul 2023 06:58:59 +0000 (06:58 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 18 Jul 2023 06:58:59 +0000 (06:58 +0000)
commitc0be31d82431370176eefa9452c6097a4d7ac4ed
tree95384aec9aa2c592aad6dd809735e2e552a278a1
parentef5e165a9cc07763dcd64b8ab0e6e57c5514b429
With the update of the sleep API the linux emulation of their wait API,
schedule() and set_current_state() can be implemented in a much less
hacky way. This should remove some possible race conditions in the wait API.
Tested by many (kettenis, jsg, phessler, thfr)
OK kettenis@
sys/dev/pci/drm/drm_linux.c
sys/dev/pci/drm/include/linux/wait.h
sys/dev/pci/drm/radeon/radeon_fence.c