From 32cebaf750b82639822f5f50d0aa8a4417595ada Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Mon, 28 Aug 2000 19:50:52 +0000 Subject: Add compatibility header file to make Linux 2.4.0 kernel patches cleaner. --- linux/sis_drv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'linux/sis_drv.c') 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; } -- cgit v1.2.3