drm/i915: Make the ring IMR handling private
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 5 Jan 2011 10:32:24 +0000 (10:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Jan 2011 20:43:58 +0000 (20:43 +0000)
commit0dc79fb2a36efcadbb39bd8b28933d8aa40408b1
treecc82a951b6608d0be2b224cc1e75cbe6340b8aac
parent01a03331e5fe91861937f8b8e72c259f5e9eae67
drm/i915: Make the ring IMR handling private

As the IMR for the USER interrupts are not modified elsewhere, we can
separate the spinlock used for these from that of hpd and pipestats.
Those two IMR are manipulated under an IRQ and so need heavier locking.

Reported-and-tested-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h