Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm Linux mutexes



details:   https://anonhg.NetBSD.org/src/rev/fbf667d71c31
branches:  trunk
changeset: 1028325:fbf667d71c31
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 10:38:31 2021 +0000

description:
Linux mutexes

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_self_refresh_helper.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r a0657c190d23 -r fbf667d71c31 sys/external/bsd/drm2/dist/drm/drm_self_refresh_helper.c
--- a/sys/external/bsd/drm2/dist/drm/drm_self_refresh_helper.c  Sun Dec 19 10:38:22 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_self_refresh_helper.c  Sun Dec 19 10:38:31 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_self_refresh_helper.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $    */
+/*     $NetBSD: drm_self_refresh_helper.c,v 1.3 2021/12/19 10:38:31 riastradh Exp $    */
 
 // SPDX-License-Identifier: MIT
 /*
@@ -8,7 +8,7 @@
  * Sean Paul <seanpaul%chromium.org@localhost>
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_self_refresh_helper.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_self_refresh_helper.c,v 1.3 2021/12/19 10:38:31 riastradh Exp $");
 
 #include <linux/average.h>
 #include <linux/bitops.h>
@@ -25,6 +25,8 @@
 #include <drm/drm_print.h>
 #include <drm/drm_self_refresh_helper.h>
 
+#include <linux/nbsd-namespace.h>
+
 /**
  * DOC: overview
  *
@@ -281,6 +283,7 @@
        crtc->self_refresh_data = NULL;
 
        cancel_delayed_work_sync(&sr_data->entry_work);
+       mutex_destroy(&sr_data->svg_mutex);
        kfree(sr_data);
 }
 EXPORT_SYMBOL(drm_self_refresh_helper_cleanup);



Home | Main Index | Thread Index | Old Index