diff options
author | Gareth Hughes <gareth@users.sourceforge.net> | 2000-08-27 16:55:07 +0000 |
---|---|---|
committer | Gareth Hughes <gareth@users.sourceforge.net> | 2000-08-27 16:55:07 +0000 |
commit | a5c98c730f6a865f0fb457103bfeb6dad5b82045 (patch) | |
tree | 4fa4a25c43b5d58186af35f57f9601e671296963 /linux/i810_dma.c | |
parent | ae24dece16ecc9f491f9591379ff7897c9b507a4 (diff) |
Get latest kernel module updates from Rik Faith. Thanks, Rik! Sync with
2.4.0-test7, other fixes currently on the trunk.
Diffstat (limited to 'linux/i810_dma.c')
-rw-r--r-- | linux/i810_dma.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/i810_dma.c b/linux/i810_dma.c index 19b7bd92..5792bf39 100644 --- a/linux/i810_dma.c +++ b/linux/i810_dma.c @@ -1227,6 +1227,16 @@ int i810_lock(struct inode *inode, struct file *filp, unsigned int cmd, } if (!ret) { +#if LINUX_VERSION_CODE >= 0x020400 /* KERNEL_VERSION(2,4,0) */ + sigemptyset(&dev->sigmask); + sigaddset(&dev->sigmask, SIGSTOP); + sigaddset(&dev->sigmask, SIGTSTP); + sigaddset(&dev->sigmask, SIGTTIN); + sigaddset(&dev->sigmask, SIGTTOU); + 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_QUIESCENT) { DRM_DEBUG("_DRM_LOCK_QUIESCENT\n"); DRM_DEBUG("fred\n"); |