]> git.baikalelectronics.ru Git - kernel.git/commit
drm/udl: Replace semaphore with a simple wait queue
authorTakashi Iwai <tiwai@suse.de>
Thu, 4 Aug 2022 07:58:23 +0000 (09:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Aug 2022 08:06:20 +0000 (10:06 +0200)
commit5dbdc6358b9b593e258d391133609c41ba30ada9
tree8a9a3c72e96d8f932c7fe3d0b72383eafa518323
parent3bd5a3d255741a46847dc4a6d58e0ae7ded79087
drm/udl: Replace semaphore with a simple wait queue

UDL driver uses a semaphore for controlling the emptiness of FIFO in a
slightly funky way.  This patch replaces it with a wait queue and
controls the emptiness with the standard wait_event*() macro instead,
which is a more straightforward implementation.

While we are at it, drop the dead code for delayed semaphore down,
too.

Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220804075826.27036-2-tiwai@suse.de
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_main.c