mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 10:58:06 +02:00
Add spinlocks to interrupt handler.
This commit is contained in:
parent
c76a35b3c8
commit
30da0a74b5
1 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue