summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGareth Hughes <gareth@users.sourceforge.net>2001-01-31 18:33:34 +0000
committerGareth Hughes <gareth@users.sourceforge.net>2001-01-31 18:33:34 +0000
commit30da0a74b5343c3fb6fdc1239bcf858e68baef74 (patch)
tree0506028e7c4d01b881ae11a1690bf8becb4685a1
parentc76a35b3c86bdd64340bad88d6bd065ea9a4e6f3 (diff)
Add spinlocks to interrupt handler.
-rw-r--r--linux/mga_dma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/mga_dma.c b/linux/mga_dma.c
index 0c15c71f..bc9735c7 100644
--- a/linux/mga_dma.c
+++ b/linux/mga_dma.c
@@ -1256,7 +1256,9 @@ static void mga_dma_service( int irq, void *device, struct pt_regs *regs )
MGA_WRITE( MGA_ICLEAR, MGA_SOFTRAPICLR );
+ spin_lock( &primary->lock );
tail = primary->tail + dev_priv->primary->offset;
+ spin_unlock( &primary->lock );
DRM_DEBUG( " *** wrap interrupt:\n" );
DRM_DEBUG( " head = 0x%06x\n", head - dev_priv->primary->offset );