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 drm: Initialize/destroy struc...



details:   https://anonhg.NetBSD.org/src/rev/de40c50af2d3
branches:  trunk
changeset: 1028487:de40c50af2d3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:09:34 2021 +0000

description:
drm: Initialize/destroy struct drm_file::event_read_wq.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_file.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r d88f80f4c87a -r de40c50af2d3 sys/external/bsd/drm2/dist/drm/drm_file.c
--- a/sys/external/bsd/drm2/dist/drm/drm_file.c Sun Dec 19 11:09:25 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_file.c Sun Dec 19 11:09:34 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_file.c,v 1.3 2021/12/19 10:45:33 riastradh Exp $   */
+/*     $NetBSD: drm_file.c,v 1.4 2021/12/19 11:09:34 riastradh Exp $   */
 
 /*
  * \author Rickard E. (Rik) Faith <faith%valinux.com@localhost>
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_file.c,v 1.3 2021/12/19 10:45:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_file.c,v 1.4 2021/12/19 11:09:34 riastradh Exp $");
 
 #include <linux/anon_inodes.h>
 #include <linux/dma-fence.h>
@@ -156,6 +156,7 @@
        INIT_LIST_HEAD(&file->event_list);
 #ifdef __NetBSD__
        DRM_INIT_WAITQUEUE(&file->event_wait, "drmevent");
+       DRM_INIT_WAITQUEUE(&file->event_read_wq, "drmevtrd");
        selinit(&file->event_selq);
 #else
        init_waitqueue_head(&file->event_wait);
@@ -198,6 +199,7 @@
        mutex_destroy(&file->fbs_lock);
 #ifdef __NetBSD__
        DRM_DESTROY_WAITQUEUE(&file->event_wait);
+       DRM_DESTROY_WAITQUEUE(&file->event_read_wq);
        seldestroy(&file->event_selq);
 #else
        put_pid(file->pid);



Home | Main Index | Thread Index | Old Index