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 Clean up the waitque...
details: https://anonhg.NetBSD.org/src/rev/d83f41d2ad14
branches: riastradh-drm2
changeset: 788494:d83f41d2ad14
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 04:03:31 2013 +0000
description:
Clean up the waitqueue and locks in drm_vblank_cleanup.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_irq.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r 7c78b1b60b5b -r d83f41d2ad14 sys/external/bsd/drm2/dist/drm/drm_irq.c
--- a/sys/external/bsd/drm2/dist/drm/drm_irq.c Wed Jul 24 04:03:15 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_irq.c Wed Jul 24 04:03:31 2013 +0000
@@ -205,6 +205,14 @@
vblank_disable_fn((unsigned long)dev);
+#ifdef __NetBSD__
+ {
+ unsigned int i;
+ for (i = 0; i < dev->num_crtcs; i++)
+ DRM_DESTROY_WAITQUEUE(&dev->vbl_queue[i]);
+ }
+#endif
+
kfree(dev->vbl_queue);
kfree(dev->_vblank_count);
kfree(dev->vblank_refcount);
@@ -215,6 +223,11 @@
kfree(dev->_vblank_time);
dev->num_crtcs = 0;
+
+#ifdef __NetBSD__
+ spin_lock_destroy(&dev->vblank_time_lock);
+ spin_lock_destroy(&dev->vbl_lock);
+#endif
}
EXPORT_SYMBOL(drm_vblank_cleanup);
Home |
Main Index |
Thread Index |
Old Index