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 Destroy spin locks ap...



details:   https://anonhg.NetBSD.org/src/rev/2bbe74daf69d
branches:  trunk
changeset: 344729:2bbe74daf69d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Apr 13 07:57:15 2016 +0000

description:
Destroy spin locks appropriately.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c      |  5 +++--
 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv10_fence.c |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r c03e6526638d -r 2bbe74daf69d sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c    Wed Apr 13 07:52:47 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c    Wed Apr 13 07:57:15 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_fence.c,v 1.3 2014/08/23 08:03:33 riastradh Exp $      */
+/*     $NetBSD: nouveau_fence.c,v 1.4 2016/04/13 07:57:15 riastradh Exp $      */
 
 /*
  * Copyright (C) 2007 Ben Skeggs.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_fence.c,v 1.3 2014/08/23 08:03:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_fence.c,v 1.4 2016/04/13 07:57:15 riastradh Exp $");
 
 #include <drm/drmP.h>
 
@@ -71,6 +71,7 @@
                nouveau_fence_signal(fence);
        }
        spin_unlock(&fctx->lock);
+       spin_lock_destroy(&fctx->lock);
 }
 
 void
diff -r c03e6526638d -r 2bbe74daf69d sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv10_fence.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv10_fence.c       Wed Apr 13 07:52:47 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv10_fence.c       Wed Apr 13 07:57:15 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nv10_fence.c,v 1.2 2014/08/23 08:03:33 riastradh Exp $ */
+/*     $NetBSD: nouveau_nv10_fence.c,v 1.3 2016/04/13 07:57:15 riastradh Exp $ */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nv10_fence.c,v 1.2 2014/08/23 08:03:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nv10_fence.c,v 1.3 2016/04/13 07:57:15 riastradh Exp $");
 
 #include <core/object.h>
 #include <core/class.h>
@@ -95,6 +95,7 @@
                nouveau_bo_unpin(priv->bo);
        nouveau_bo_ref(NULL, &priv->bo);
        drm->fence = NULL;
+       spin_lock_destroy(&priv->lock);
        kfree(priv);
 }
 



Home | Main Index | Thread Index | Old Index