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/nouveau/nvkm/core Destroy spi...



details:   https://anonhg.NetBSD.org/src/rev/590bb971b9e0
branches:  trunk
changeset: 366258:590bb971b9e0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:16:17 2018 +0000

description:
Destroy spin locks we created.

diffstat:

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

diffs (27 lines):

diff -r c3fe05a063e4 -r 590bb971b9e0 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_event.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_event.c        Mon Aug 27 14:16:04 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_event.c        Mon Aug 27 14:16:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_core_event.c,v 1.2 2018/08/27 04:58:30 riastradh Exp $    */
+/*     $NetBSD: nouveau_nvkm_core_event.c,v 1.3 2018/08/27 14:16:17 riastradh Exp $    */
 
 /*
  * Copyright 2013-2014 Red Hat Inc.
@@ -22,7 +22,7 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_event.c,v 1.2 2018/08/27 04:58:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_event.c,v 1.3 2018/08/27 14:16:17 riastradh Exp $");
 
 #include <core/event.h>
 #include <core/notify.h>
@@ -83,6 +83,8 @@
                kfree(event->refs);
                event->refs = NULL;
        }
+       spin_lock_destroy(&event->list_lock);
+       spin_lock_destroy(&event->refs_lock);
 }
 
 int



Home | Main Index | Thread Index | Old Index