From 30da0a74b5343c3fb6fdc1239bcf858e68baef74 Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Wed, 31 Jan 2001 18:33:34 +0000 Subject: Add spinlocks to interrupt handler. --- linux/mga_dma.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- cgit v1.2.3