From 761ffd63f3b8c9789afe026e75d384a6d450165a Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Thu, 17 Aug 2000 20:20:33 +0000 Subject: [PATCH] Bug #112197 Made sis driver compile under 2.4.0-test7/pre4 --- linux-core/sis_drv.c | 11 ----------- linux/sis_drv.c | 11 ----------- linux/sis_mm.c | 7 +++---- 3 files changed, 3 insertions(+), 26 deletions(-) diff --git a/linux-core/sis_drv.c b/linux-core/sis_drv.c index 1e8abb7f..c04561ee 100644 --- a/linux-core/sis_drv.c +++ b/linux-core/sis_drv.c @@ -28,7 +28,6 @@ * Daryll Strauss * */ -/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_drv.c,v 1.2 2000/08/04 03:51:47 tsi Exp $ */ #include #include "drmP.h" @@ -643,11 +642,6 @@ int sis_lock(struct inode *inode, struct file *filp, unsigned int cmd, } } - if (lock.context != sis_res_ctx.handle) { - current->counter = 5; - current->priority = DEF_PRIORITY/4; - } - DRM_DEBUG("%d %s\n", lock.context, ret ? "interrupted" : "has lock"); #if DRM_DMA_HISTOGRAM @@ -688,11 +682,6 @@ int sis_unlock(struct inode *inode, struct file *filp, unsigned int cmd, } } - if (lock.context != sis_res_ctx.handle) { - current->counter = 5; - current->priority = DEF_PRIORITY; - } - return 0; } diff --git a/linux/sis_drv.c b/linux/sis_drv.c index 1e8abb7f..c04561ee 100644 --- a/linux/sis_drv.c +++ b/linux/sis_drv.c @@ -28,7 +28,6 @@ * Daryll Strauss * */ -/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_drv.c,v 1.2 2000/08/04 03:51:47 tsi Exp $ */ #include #include "drmP.h" @@ -643,11 +642,6 @@ int sis_lock(struct inode *inode, struct file *filp, unsigned int cmd, } } - if (lock.context != sis_res_ctx.handle) { - current->counter = 5; - current->priority = DEF_PRIORITY/4; - } - DRM_DEBUG("%d %s\n", lock.context, ret ? "interrupted" : "has lock"); #if DRM_DMA_HISTOGRAM @@ -688,11 +682,6 @@ int sis_unlock(struct inode *inode, struct file *filp, unsigned int cmd, } } - if (lock.context != sis_res_ctx.handle) { - current->counter = 5; - current->priority = DEF_PRIORITY; - } - return 0; } diff --git a/linux/sis_mm.c b/linux/sis_mm.c index e722b8bd..1d6a2748 100644 --- a/linux/sis_mm.c +++ b/linux/sis_mm.c @@ -1,14 +1,13 @@ /* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_mm.c,v 1.2 2000/08/04 03:51:48 tsi Exp $ */ #define __NO_VERSION__ -#include -#include -#include - #include "drmP.h" #include "sis_drm_public.h" #include "sis_ds.h" #include "sis_drv.h" +#include +#include +#include #define MAX_CONTEXT 100 #define VIDEO_TYPE 0