]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add DRM-managed mutex_init()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 May 2022 14:25:12 +0000 (16:25 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 5 May 2022 07:04:10 +0000 (09:04 +0200)
commita19918daed07e988113943d3da4a028e59e9454d
treec7d809d901f8b170f5cc329bb44204f9907dd34e
parenteec8d186c27139742b54706666166dcf8f5e215c
drm: Add DRM-managed mutex_init()

Add drmm_mutex_init(), a helper that provides managed mutex cleanup. The
mutex will be destroyed with the final reference of the DRM device.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220502142514.2174-2-tzimmermann@suse.de
drivers/gpu/drm/drm_managed.c
include/drm/drm_managed.h