summaryrefslogtreecommitdiff
path: root/linux/sis_drv.c
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-08-28 19:50:52 +0000
committerRik Faith <faith@alephnull.com>2000-08-28 19:50:52 +0000
commit32cebaf750b82639822f5f50d0aa8a4417595ada (patch)
tree302cadb8dea2bb37491713bbc4b6ceac21f22021 /linux/sis_drv.c
parent6f07e1ff6bec8f306e8aa1d59b8bcaa93ffa776e (diff)
Add compatibility header file to make Linux 2.4.0 kernel patches cleaner.
Diffstat (limited to 'linux/sis_drv.c')
-rw-r--r--linux/sis_drv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/sis_drv.c b/linux/sis_drv.c
index 434a1ccd..06ae7988 100644
--- a/linux/sis_drv.c
+++ b/linux/sis_drv.c
@@ -626,7 +626,6 @@ int sis_lock(struct inode *inode, struct file *filp, unsigned int cmd,
#endif
if (!ret) {
-#if LINUX_VERSION_CODE >= 0x020400 /* KERNEL_VERSION(2,4,0) */
sigemptyset(&dev->sigmask);
sigaddset(&dev->sigmask, SIGSTOP);
sigaddset(&dev->sigmask, SIGTSTP);
@@ -635,7 +634,7 @@ int sis_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) {
/* Wait for space in DMA/FIFO */
}
@@ -687,9 +686,7 @@ int sis_unlock(struct inode *inode, struct file *filp, unsigned int cmd,
}
}
-#if LINUX_VERSION_CODE >= 0x020400 /* KERNEL_VERSION(2,4,0) */
unblock_all_signals();
-#endif
return 0;
}