]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a7ebb9fb8dbb77127fb4ed8c57bb05bddd7249c
tree7994cdd9085ce1777d711ec5da6726ad158c7f65
parent99462eaf14a698a6924daf9979ec09fe126a1609
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