diff options
author | Rik Faith <faith@alephnull.com> | 2000-08-28 19:50:52 +0000 |
---|---|---|
committer | Rik Faith <faith@alephnull.com> | 2000-08-28 19:50:52 +0000 |
commit | 32cebaf750b82639822f5f50d0aa8a4417595ada (patch) | |
tree | 302cadb8dea2bb37491713bbc4b6ceac21f22021 /linux/gamma_dma.c | |
parent | 6f07e1ff6bec8f306e8aa1d59b8bcaa93ffa776e (diff) |
Add compatibility header file to make Linux 2.4.0 kernel patches cleaner.
Diffstat (limited to 'linux/gamma_dma.c')
-rw-r--r-- | linux/gamma_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/gamma_dma.c b/linux/gamma_dma.c index 4a2acfb3..96ea0455 100644 --- a/linux/gamma_dma.c +++ b/linux/gamma_dma.c @@ -804,7 +804,6 @@ int gamma_lock(struct inode *inode, struct file *filp, unsigned int cmd, drm_flush_unblock(dev, lock.context, lock.flags); /* cleanup phase */ if (!ret) { -#if LINUX_VERSION_CODE >= 0x020400 /* KERNEL_VERSION(2,4,0) */ sigemptyset(&dev->sigmask); sigaddset(&dev->sigmask, SIGSTOP); sigaddset(&dev->sigmask, SIGTSTP); @@ -813,7 +812,7 @@ int gamma_lock(struct inode *inode, struct file *filp, unsigned int cmd, dev->sigdata.context = lock.context; dev->sigdata.lock = dev->lock.hw_lock; block_all_signals(drm_notifier, &dev->sigdata, &dev->sigmask); -#endif + if (lock.flags & _DRM_LOCK_READY) gamma_dma_ready(dev); if (lock.flags & _DRM_LOCK_QUIESCENT) { |