From 40891ac190fb74f389ea1a9758249a2f642fd99b Mon Sep 17 00:00:00 2001 From: Michel Daenzer Date: Sat, 30 Nov 2002 14:24:07 +0000 Subject: vertical blank ioctl can send signal instead of blocking --- shared/radeon_irq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/radeon_irq.c') diff --git a/shared/radeon_irq.c b/shared/radeon_irq.c index 54702bee..b8f33f95 100644 --- a/shared/radeon_irq.c +++ b/shared/radeon_irq.c @@ -70,13 +70,15 @@ void DRM(dma_service)( DRM_IRQ_ARGS ) DRM_WAKEUP( &dev_priv->swi_queue ); } -#if __HAVE_VBL_IRQ /* VBLANK interrupt */ if (stat & RADEON_CRTC_VBLANK_STAT) { atomic_inc(&dev->vbl_received); DRM_WAKEUP(&dev->vbl_queue); + + /* kick off bottom half for signals */ + queue_task(&dev->vbl_tq, &tq_immediate); + mark_bh(IMMEDIATE_BH); } -#endif /* Acknowledge all the bits in GEN_INT_STATUS -- seem to get * more than we asked for... @@ -138,7 +140,6 @@ int radeon_emit_and_wait_irq(drm_device_t *dev) } -#if __HAVE_VBL_IRQ int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence) { drm_radeon_private_t *dev_priv = @@ -167,7 +168,6 @@ int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence) return ret; } -#endif /* Needs the lock as it touches the ring. -- cgit v1.2.3