i915: Protect vblank IRQ reg access with spinlock
authorKeith Packard <keithp@keithp.com>
Thu, 16 Oct 2008 18:31:38 +0000 (11:31 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Oct 2008 03:42:26 +0000 (13:42 +1000)
commite9d21d7f5ae1e625f3687d88bb50b00478c533ad
tree7df5011d358145f89564b42c38f58cab16f78ea7
parent4b40893918203ee1a1f6a114316c2a19c072e9bd
i915: Protect vblank IRQ reg access with spinlock

This uses the same spinlock as the user_irq code as it shares the same
register, ensuring that interrupt registers are updated atomically.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_irq.c