From c943e2691397a87d0cb61ccf00545576a0ecbef5 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Mon, 6 Jul 2020 10:48:58 +0200 Subject: [PATCH] lib/drm: use Blockade Fixes #3801 --- repos/libports/src/lib/drm/ioctl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repos/libports/src/lib/drm/ioctl.cc b/repos/libports/src/lib/drm/ioctl.cc index ace3a1694c..914f225543 100644 --- a/repos/libports/src/lib/drm/ioctl.cc +++ b/repos/libports/src/lib/drm/ioctl.cc @@ -156,7 +156,7 @@ class Drm_call Gpu::Connection _gpu_session { _env }; Gpu::Info _gpu_info { _gpu_session.info() }; - Genode::Lock _completion_lock { Genode::Lock::LOCKED }; + Genode::Blockade _completion_lock { }; size_t available_gtt_size { _gpu_info.aperture_size }; @@ -357,7 +357,7 @@ class Drm_call ** execbuffer completion ** ***************************/ - void _handle_completion() { _completion_lock.unlock(); } + void _handle_completion() { _completion_lock.wakeup(); } Genode::Io_signal_handler _completion_sigh { _env.ep(), *this, &Drm_call::_handle_completion }; @@ -834,7 +834,7 @@ class Drm_call : _generic_ioctl(command_number(request), arg); } - void wait_for_completion() { _completion_lock.lock(); } + void wait_for_completion() { _completion_lock.block(); } };