diff options
author | David Dawes <dawes@xfree86.org> | 2003-04-17 15:27:34 +0000 |
---|---|---|
committer | David Dawes <dawes@xfree86.org> | 2003-04-17 15:27:34 +0000 |
commit | d1b7f551e6d582cd9c44d23883de1f6121907627 (patch) | |
tree | 97b6ea1752a89520e4609f1c336d28a4d49b2c96 /linux/drm_dma.h | |
parent | 48e389f3a5109383ca71c6c7f743b5107965f1d9 (diff) |
Fix DRM module build on 2.5.41 and later kernels (tqueue -> workqueue).
Diffstat (limited to 'linux/drm_dma.h')
-rw-r--r-- | linux/drm_dma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drm_dma.h b/linux/drm_dma.h index 71e25b3d..f14e08f0 100644 --- a/linux/drm_dma.h +++ b/linux/drm_dma.h @@ -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 |