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/i915 Destroy locks i...



details:   https://anonhg.NetBSD.org/src/rev/6d92808ba342
branches:  riastradh-drm2
changeset: 788497:6d92808ba342
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 04:04:16 2013 +0000

description:
Destroy locks in i915_driver_unload.

diffstat:

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

diffs (18 lines):

diff -r 642ff0d79943 -r 6d92808ba342 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Wed Jul 24 04:04:01 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Wed Jul 24 04:04:16 2013 +0000
@@ -1908,6 +1908,14 @@
                pci_iounmap(dev->pdev, dev_priv->regs);
 #endif
 
+#ifdef __NetBSD__
+       spin_lock_destroy(&dev_priv->irq_lock);
+       spin_lock_destroy(&dev_priv->error_lock);
+       spin_lock_destroy(&dev_priv->rps.lock);
+       spin_lock_destroy(&dev_priv->dpio_lock);
+       linux_mutex_destroy(&dev_priv->rps.hw_lock);
+#endif
+
        intel_teardown_gmbus(dev);
        intel_teardown_mchbar(dev);
 



Home | Main Index | Thread Index | Old Index