drm/i915/ringbuffer: Make IRQ refcnting atomic
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Dec 2010 16:54:50 +0000 (16:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Dec 2010 11:34:46 +0000 (11:34 +0000)
commitb13c2b96bf15b9dd0f1a45fd788f3a3025c5aec6
tree6eb68ba8f5e4ec977efc3e087435ef272534915c
parent8d5203ca62539c6ab36a5bc2402c2de1de460e30
drm/i915/ringbuffer: Make IRQ refcnting atomic

In order to enforce the correct memory barriers for irq get/put, we need
to perform the actual counting using atomic operations.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h