summaryrefslogtreecommitdiff
path: root/linux-core/drm_dma.c
diff options
context:
space:
mode:
authorDavid Dawes <dawes@xfree86.org>2003-04-17 15:27:34 +0000
committerDavid Dawes <dawes@xfree86.org>2003-04-17 15:27:34 +0000
commitd1b7f551e6d582cd9c44d23883de1f6121907627 (patch)
tree97b6ea1752a89520e4609f1c336d28a4d49b2c96 /linux-core/drm_dma.c
parent48e389f3a5109383ca71c6c7f743b5107965f1d9 (diff)
Fix DRM module build on 2.5.41 and later kernels (tqueue -> workqueue).
Diffstat (limited to 'linux-core/drm_dma.c')
-rw-r--r--linux-core/drm_dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/drm_dma.c b/linux-core/drm_dma.c
index 71e25b3d..f14e08f0 100644
--- a/linux-core/drm_dma.c
+++ b/linux-core/drm_dma.c
@@ -538,10 +538,14 @@ int DRM(irq_install)( drm_device_t *dev, int irq )
dev->dma->this_buffer = NULL;
#if __HAVE_DMA_IRQ_BH
+#if !HAS_WORKQUEUE
INIT_LIST_HEAD( &dev->tq.list );
dev->tq.sync = 0;
dev->tq.routine = DRM(dma_immediate_bh);
dev->tq.data = dev;
+#else
+ INIT_WORK(&dev->work, DRM(dma_immediate_bh), dev);
+#endif
#endif
#if __HAVE_VBL_IRQ