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/i915 Lock irq_lock around i91...



details:   https://anonhg.NetBSD.org/src/rev/52ec492f2694
branches:  trunk
changeset: 802012:52ec492f2694
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Aug 27 23:30:26 2014 +0000

description:
Lock irq_lock around i915_error_wake_up in i915_error_work_func.

diffstat:

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

diffs (13 lines):

diff -r 8248b44fb75c -r 52ec492f2694 sys/external/bsd/drm2/dist/drm/i915/i915_irq.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c    Wed Aug 27 19:02:17 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c    Wed Aug 27 23:30:26 2014 +0000
@@ -2249,7 +2249,9 @@
                 * Note: The wake_up also serves as a memory barrier so that
                 * waiters see the update value of the reset counter atomic_t.
                 */
+               spin_lock(&dev_priv->irq_lock);
                i915_error_wake_up(dev_priv, true);
+               spin_unlock(&dev_priv->irq_lock);
        }
 }
 



Home | Main Index | Thread Index | Old Index