summaryrefslogtreecommitdiff
path: root/linux/gamma_dma.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2000-09-06 12:11:57 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2000-09-06 12:11:57 +0000
commit68380d1373cf7b01a6ae5c9440de7a52745af091 (patch)
tree42c623666b8746dae59e7ed2423a19ebaa68b9cd /linux/gamma_dma.c
parenta2020a33349c91a0036b1fde8ae0d0229ae8e005 (diff)
Merge trunk into tdfx-2-1-branchtdfx-2-1-20000906
Diffstat (limited to 'linux/gamma_dma.c')
-rw-r--r--linux/gamma_dma.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/gamma_dma.c b/linux/gamma_dma.c
index a99f24ca..96ea0455 100644
--- a/linux/gamma_dma.c
+++ b/linux/gamma_dma.c
@@ -804,6 +804,15 @@ int gamma_lock(struct inode *inode, struct file *filp, unsigned int cmd,
drm_flush_unblock(dev, lock.context, lock.flags); /* cleanup phase */
if (!ret) {
+ 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);
+
if (lock.flags & _DRM_LOCK_READY)
gamma_dma_ready(dev);
if (lock.flags & _DRM_LOCK_QUIESCENT) {