Module Name: src
Committed By: riastradh
Date: Wed Aug 27 23:30:26 UTC 2014
Modified Files:
src/sys/external/bsd/drm2/dist/drm/i915: i915_irq.c
Log Message:
Lock irq_lock around i915_error_wake_up in i915_error_work_func.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c:1.8 src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c:1.9
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c:1.8 Wed Aug 27 15:31:08 2014
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c Wed Aug 27 23:30:26 2014
@@ -2249,7 +2249,9 @@ static void i915_error_work_func(struct
* 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);
}
}