summaryrefslogtreecommitdiff
path: root/linux/gamma_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/gamma_dma.c
parent48e389f3a5109383ca71c6c7f743b5107965f1d9 (diff)
Fix DRM module build on 2.5.41 and later kernels (tqueue -> workqueue).
Diffstat (limited to 'linux/gamma_dma.c')
-rw-r--r--linux/gamma_dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/gamma_dma.c b/linux/gamma_dma.c
index 5b4d84bc..6734f1c4 100644
--- a/linux/gamma_dma.c
+++ b/linux/gamma_dma.c
@@ -127,9 +127,13 @@ void gamma_dma_service(int irq, void *device, struct pt_regs *regs)
}
clear_bit(0, &dev->dma_flag);
+#if !HAS_WORKQUEUE
/* Dispatch new buffer */
queue_task(&dev->tq, &tq_immediate);
mark_bh(IMMEDIATE_BH);
+#else
+ schedule_work(&dev->work);
+#endif
}
}