summaryrefslogtreecommitdiff
path: root/linux/gamma_dma.c
diff options
context:
space:
mode:
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
}
}