Source-Changes-HG archive

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

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Make drm_master_dest...



details:   https://anonhg.NetBSD.org/src/rev/bc6cc876d94d
branches:  riastradh-drm2
changeset: 788202:bc6cc876d94d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:41:13 2013 +0000

description:
Make drm_master_destroy destroy the spinlock and waitqueues too.

diffstat:

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

diffs (16 lines):

diff -r 2a1ee7215b61 -r bc6cc876d94d sys/external/bsd/drm2/dist/drm/drm_stub.c
--- a/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:40:57 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:41:13 2013 +0000
@@ -227,6 +227,12 @@
 
        drm_ht_remove(&master->magiclist);
 
+#ifdef __NetBSD__
+       spin_lock_destroy(&master->lock.spinlock);
+       DRM_DESTROY_WAITQUEUE(&master->lock.lock_queue);
+       DRM_DESTROY_WAITQUEUE(&master->lock.kernel_lock_queue);
+#endif
+
        kfree(master);
 }
 



Home | Main Index | Thread Index | Old Index