drm/i915: Move the irq wait queue initialisation into the ring init
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Mar 2011 12:19:09 +0000 (13:19 +0100)
committerKeith Packard <keithp@keithp.com>
Tue, 10 May 2011 20:19:12 +0000 (13:19 -0700)
commitb259f6730c09bc356df932ba9188f291de816808
tree7994cdd9085ce1777d711ec5da6726ad158c7f65
parent2fb4e61d9471867677c97bf11dba8f1e9dfa7f7c
drm/i915: Move the irq wait queue initialisation into the ring init

Required so that we don't obliterate the queue if initialising the
rings after the global IRQ handler is installed.

[Jesse, you recently looked at refactoring the IRQ installation
routines, does moving the initialisation of ring buffer data structures away
from that routine make sense in your grand scheme?]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_ringbuffer.c