summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-02-19 17:10:11 +1100
committerJonathan Gray <jsg@jsg.id.au>2013-02-19 17:10:11 +1100
commitfa4ca76681d8befc934590c231aead077d5b7ffa (patch)
treee30108399bcb5be2b9823efe64bbcb66e62dff8e /sys/dev
parent23d7525eb372c8bfe39f4b477a81e33f520027dc (diff)
fix a wakeup, we don't use a per ring irq sleep yet
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/i915_irq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915_irq.c b/sys/dev/pci/drm/i915_irq.c
index 0aa1426688f..840e0e318c0 100644
--- a/sys/dev/pci/drm/i915_irq.c
+++ b/sys/dev/pci/drm/i915_irq.c
@@ -1559,8 +1559,10 @@ void
i915_handle_error(struct drm_device *dev, bool wedged)
{
struct inteldrm_softc *dev_priv = dev->dev_private;
+#ifdef notyet
struct intel_ring_buffer *ring;
int i;
+#endif
i915_capture_error_state(dev);
i915_report_and_clear_eir(dev);
@@ -1572,8 +1574,12 @@ i915_handle_error(struct drm_device *dev, bool wedged)
/*
* Wakeup waiting processes so they don't hang
*/
+#ifdef notyet
for_each_ring(ring, dev_priv, i)
wakeup(&ring->irq_queue);
+#else
+ wakeup(dev_priv);
+#endif
}
#ifdef notyet