Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 11:09:34 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm: drm_file.c

Log Message:
drm: Initialize/destroy struct drm_file::event_read_wq.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/dist/drm/drm_file.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/drm_file.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_file.c:1.3 src/sys/external/bsd/drm2/dist/drm/drm_file.c:1.4
--- src/sys/external/bsd/drm2/dist/drm/drm_file.c:1.3	Sun Dec 19 10:45:33 2021
+++ src/sys/external/bsd/drm2/dist/drm/drm_file.c	Sun Dec 19 11:09:34 2021
@@ -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 <fa...@valinux.com>
@@ -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 @@ struct drm_file *drm_file_alloc(struct d
 	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 @@ out_prime_destroy:
 	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);

Reply via email to