Audit calls to schedule() Remove tags from files shared with Linux kernel
authorRik Faith <faith@alephnull.com>
Fri, 29 Sep 2000 01:47:11 +0000 (01:47 +0000)
committerRik Faith <faith@alephnull.com>
Fri, 29 Sep 2000 01:47:11 +0000 (01:47 +0000)
    tree Remove debugging statements to make debugging more useful Other
    minor cleanups in preparation for sync with Linux 2.4.0-test9-pre7

52 files changed:
linux-core/Makefile.kernel
linux-core/README.drm
linux-core/drmP.h
linux-core/i810_dma.c
linux-core/i810_drv.c
linux-core/i810_drv.h
linux-core/mga_drv.c
linux-core/r128_drv.c
linux-core/sis_drv.c
linux-core/tdfx_drv.c
linux/Makefile.kernel
linux/Makefile.linux
linux/README.drm
linux/agpsupport.c
linux/auth.c
linux/bufs.c
linux/drm.h
linux/drmP.h
linux/fops.c
linux/gamma_dma.c
linux/gamma_drv.c
linux/gamma_drv.h
linux/i810_context.c
linux/i810_dma.c
linux/i810_drv.c
linux/i810_drv.h
linux/init.c
linux/memory.c
linux/mga_context.c
linux/mga_dma.c
linux/mga_drv.c
linux/mga_drv.h
linux/mga_state.c
linux/picker.c
linux/proc.c
linux/r128_bufs.c
linux/r128_context.c
linux/r128_drv.c
linux/r128_drv.h
linux/sis_context.c
linux/sis_drm.h
linux/sis_drv.c
linux/sis_drv.h
linux/sis_ds.c
linux/sis_ds.h
linux/sis_mm.c
linux/tdfx_context.c
linux/tdfx_drv.c
linux/tdfx_drv.h
linux/vm.c
shared-core/drm.h
shared/drm.h

index 0791af4..b1b8d97 100644 (file)
@@ -1,4 +1,3 @@
-# $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.kernel,v 1.8 2000/08/28 02:43:14 tsi Exp $
 #
 # Makefile for the drm device driver.  This driver provides support for
 # the Direct Rendering Infrastructure (DRI) in XFree86 4.x.
index 97dd0d8..5c293fb 100644 (file)
@@ -1,4 +1,3 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/README.drm,v 1.4 2000/08/28 02:43:14 tsi Exp $ */
 
 ************************************************************
 * For the very latest on DRI development, please see:      *
index 69cf63d..1f88341 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h,v 1.9 2000/08/28 02:43:14 tsi Exp $ */
 
 #ifndef _DRM_P_H_
 #define _DRM_P_H_
index 11d9973..26fe0c1 100644 (file)
@@ -29,7 +29,6 @@
  *          Keith Whitwell <keithw@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/i810_dma.c,v 1.6 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 5d4a9c1..ed880c4 100644 (file)
@@ -28,7 +28,6 @@
  *         Jeff Hartmann <jhartmann@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/i810_drv.c,v 1.5 2000/08/28 02:43:15 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -36,7 +35,7 @@
 
 #define I810_NAME       "i810"
 #define I810_DESC       "Intel I810"
-#define I810_DATE       "20000910"
+#define I810_DATE       "20000928"
 #define I810_MAJOR      1
 #define I810_MINOR      1
 #define I810_PATCHLEVEL         0
index 9f46be5..1c95740 100644 (file)
@@ -28,7 +28,6 @@
  *         Jeff Hartmann <jhartmann@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/i810_drv.h,v 1.5 2000/08/28 02:43:15 tsi Exp $ */
 
 #ifndef _I810_DRV_H_
 #define _I810_DRV_H_
index a8cf0c7..4aaac62 100644 (file)
@@ -29,7 +29,6 @@
  *
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_drv.c,v 1.4 2000/08/28 02:43:15 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
 
 #define MGA_NAME        "mga"
 #define MGA_DESC        "Matrox G200/G400"
-#define MGA_DATE        "20000910"
+#define MGA_DATE        "20000928"
 #define MGA_MAJOR       2
 #define MGA_MINOR       0
-#define MGA_PATCHLEVEL  0
+#define MGA_PATCHLEVEL  1
 
 static drm_device_t          mga_device;
 drm_ctx_t                    mga_res_ctx;
@@ -524,6 +523,7 @@ int mga_release(struct inode *inode, struct file *filp)
                DECLARE_WAITQUEUE(entry, current);
                add_wait_queue(&dev->lock.lock_queue, &entry);
                for (;;) {
+                       current->state = TASK_INTERRUPTIBLE;
                        if (!dev->lock.hw_lock) {
                                /* Device has been unregistered */
                                retcode = -EINTR;
@@ -538,7 +538,6 @@ int mga_release(struct inode *inode, struct file *filp)
                        }
                                /* Contention */
                        atomic_inc(&dev->total_sleeps);
-                       current->state = TASK_INTERRUPTIBLE;
                        schedule();
                        if (signal_pending(current)) {
                                retcode = -ERESTARTSYS;
index dcb766a..7ae4980 100644 (file)
@@ -28,7 +28,6 @@
  *          Kevin E. Martin <martin@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_drv.c,v 1.3 2000/08/28 02:43:16 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -36,7 +35,7 @@
 
 #define R128_NAME       "r128"
 #define R128_DESC       "ATI Rage 128"
-#define R128_DATE       "20000910"
+#define R128_DATE       "20000928"
 #define R128_MAJOR      1
 #define R128_MINOR      0
 #define R128_PATCHLEVEL  0
index 0b1990b..2f98e32 100644 (file)
@@ -24,7 +24,6 @@
  * DEALINGS IN THE SOFTWARE.
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_drv.c,v 1.5 2000/09/22 11:35:47 alanh Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -575,6 +574,7 @@ int sis_lock(struct inode *inode, struct file *filp, unsigned int cmd,
 #endif
                 add_wait_queue(&dev->lock.lock_queue, &entry);
                 for (;;) {
+                        current->state = TASK_INTERRUPTIBLE;
                         if (!dev->lock.hw_lock) {
                                 /* Device has been unregistered */
                                 ret = -EINTR;
@@ -590,7 +590,6 @@ int sis_lock(struct inode *inode, struct file *filp, unsigned int cmd,
                         
                                 /* Contention */
                         atomic_inc(&dev->total_sleeps);
-                        current->state = TASK_INTERRUPTIBLE;
 #if 1
                        current->policy |= SCHED_YIELD;
 #endif
index d8f5bcc..5f2c804 100644 (file)
@@ -1,4 +1,4 @@
-/* tdfx.c -- tdfx driver -*- linux-c -*-
+/* tdfx_drv.c -- tdfx driver -*- linux-c -*-
  * Created: Thu Oct  7 10:38:32 1999 by faith@precisioninsight.com
  *
  * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
@@ -29,7 +29,6 @@
  *    Daryll Strauss <daryll@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/tdfx_drv.c,v 1.6 2000/08/28 02:43:16 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -37,7 +36,7 @@
 
 #define TDFX_NAME       "tdfx"
 #define TDFX_DESC       "3dfx Banshee/Voodoo3+"
-#define TDFX_DATE       "20000910"
+#define TDFX_DATE       "20000928"
 #define TDFX_MAJOR      1
 #define TDFX_MINOR      0
 #define TDFX_PATCHLEVEL  0
index 0791af4..b1b8d97 100644 (file)
@@ -1,4 +1,3 @@
-# $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.kernel,v 1.8 2000/08/28 02:43:14 tsi Exp $
 #
 # Makefile for the drm device driver.  This driver provides support for
 # the Direct Rendering Infrastructure (DRI) in XFree86 4.x.
index 5f0465a..b76cbea 100644 (file)
@@ -24,7 +24,6 @@
 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 # 
-# $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux,v 1.11 2000/09/01 02:31:38 tsi Exp $
 #
 # ***** NOTE NOTE NOTE NOTE NOTE *****
 # To override the automatic Linux source tree determination, pass the
@@ -50,7 +49,6 @@
 
 MODS=           gamma.o tdfx.o r128.o
 LIBS=           libdrm.a
-PROGS=         drmstat
 
 DRMOBJS=       init.o memory.o proc.o auth.o context.o drawable.o bufs.o \
                lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.o
@@ -65,9 +63,6 @@ TDFXHEADERS=    tdfx_drv.h $(DRMHEADERS)
 R128OBJS=      r128_drv.o r128_dma.o r128_bufs.o r128_context.o
 R128HEADERS=   r128_drv.h r128_drm.h $(DRMHEADERS)
 
-PROGOBJS=       drmstat.po xf86drm.po xf86drmHash.po xf86drmRandom.po sigio.po
-PROGHEADERS=    xf86drm.h $(DRMHEADERS)
-
 INC=           /usr/include
 
 CFLAGS=                -O2 $(WARNINGS)
@@ -227,9 +222,6 @@ i810.o: $(I810OBJS) $(LIBS)
        $(LD) -r $^ -o $@
 endif
 
-drmstat: $(PROGOBJS)
-       $(CC) $(PRGCFLAGS) $^ $(PRGLIBS) -o $@
-
 .PHONY: ChangeLog
 ChangeLog:
        @rm -f Changelog
@@ -243,9 +235,6 @@ ChangeLog:
 %.o: %.c
        $(CC) $(MODCFLAGS) -I$(TREE) -c $< -o $@
 
-%.po: %.c
-       $(CC) $(PRGCFLAGS) -DDRM_USE_MALLOC -c $< -o $@
-
 $(DRMOBJS): $(DRMHEADERS)
 $(GAMMAOBJS): $(GAMMAHEADERS)
 $(TDFXOBJS): $(TDFXHEADERS)
@@ -254,7 +243,6 @@ ifeq ($(AGP),1)
 $(MGAOBJS): $(MGAHEADERS)
 $(I810OBJS): $(I810HEADERS)
 endif
-$(PROGOBJS): $(PROGHEADERS)
 
 clean:
-       rm -f *.o *.a *.po *~ core $(PROGS)
+       rm -f *.o *.a *~ core
index 97dd0d8..5c293fb 100644 (file)
@@ -1,4 +1,3 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/README.drm,v 1.4 2000/08/28 02:43:14 tsi Exp $ */
 
 ************************************************************
 * For the very latest on DRI development, please see:      *
index c63f690..24fd59c 100644 (file)
@@ -28,8 +28,6 @@
  *
  */
 
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/agpsupport.c,v 1.4 2000/08/28 02:43:14 tsi Exp $ */
-
 #define __NO_VERSION__
 #include "drmP.h"
 #include <linux/module.h>
index ad719cf..80bb4b6 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/auth.c,v 1.5 2000/08/28 02:43:14 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 679a096..28e0eb5 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/bufs.c,v 1.8 2000/08/28 02:43:14 tsi Exp $ */
 
 #define __NO_VERSION__
 #include <linux/config.h>
index 6cfe88f..7177147 100644 (file)
@@ -31,7 +31,6 @@
  * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic cmpxchg.
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm.h,v 1.9 2000/08/24 22:20:18 tsi Exp $ */
 
 #ifndef _DRM_H_
 #define _DRM_H_
index 69cf63d..1f88341 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h,v 1.9 2000/08/28 02:43:14 tsi Exp $ */
 
 #ifndef _DRM_P_H_
 #define _DRM_P_H_
index e6110a3..8e373e5 100644 (file)
@@ -29,7 +29,6 @@
  *    Daryll Strauss <daryll@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/fops.c,v 1.9 2000/08/28 02:43:14 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 77b0779..4ab6728 100644 (file)
@@ -542,10 +542,9 @@ static int gamma_dma_send_buffers(drm_device_t *dev, drm_dma_t *d)
        
        if (d->flags & _DRM_DMA_BLOCK) {
                DRM_DEBUG("%d waiting\n", current->pid);
-               current->state = TASK_INTERRUPTIBLE;
                for (;;) {
-                       if (!last_buf->waiting
-                           && !last_buf->pending)
+                       current->state = TASK_INTERRUPTIBLE;
+                       if (!last_buf->waiting && !last_buf->pending)
                                break; /* finished */
                        schedule();
                        if (signal_pending(current)) {
index 44dded0..dba974c 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.c,v 1.8 2000/08/28 02:43:14 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
index f8bbe07..e9ce395 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.h,v 1.6 2000/08/28 02:43:15 tsi Exp $ */
 
 #ifndef _GAMMA_DRV_H_
 #define _GAMMA_DRV_H_
index 259c299..c331bee 100644 (file)
@@ -28,7 +28,6 @@
  *         Jeff Hartmann <jhartmann@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/i810_context.c,v 1.3 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 11d9973..26fe0c1 100644 (file)
@@ -29,7 +29,6 @@
  *          Keith Whitwell <keithw@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/i810_dma.c,v 1.6 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 5d4a9c1..ed880c4 100644 (file)
@@ -28,7 +28,6 @@
  *         Jeff Hartmann <jhartmann@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/i810_drv.c,v 1.5 2000/08/28 02:43:15 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -36,7 +35,7 @@
 
 #define I810_NAME       "i810"
 #define I810_DESC       "Intel I810"
-#define I810_DATE       "20000910"
+#define I810_DATE       "20000928"
 #define I810_MAJOR      1
 #define I810_MINOR      1
 #define I810_PATCHLEVEL         0
index 9f46be5..1c95740 100644 (file)
@@ -28,7 +28,6 @@
  *         Jeff Hartmann <jhartmann@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/i810_drv.h,v 1.5 2000/08/28 02:43:15 tsi Exp $ */
 
 #ifndef _I810_DRV_H_
 #define _I810_DRV_H_
index 81cbd8f..8de3dac 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/init.c,v 1.5 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 36d424f..34d19b2 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/memory.c,v 1.8 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include <linux/config.h>
index 1494d5d..5125cff 100644 (file)
@@ -28,7 +28,6 @@
  *        Jeff Hartmann <jhartmann@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_context.c,v 1.4 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 9f12a2b..6adffb8 100644 (file)
@@ -29,7 +29,6 @@
  *         Keith Whitwell <keithw@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_dma.c,v 1.5 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
@@ -84,7 +83,7 @@ static void mga_delay(void)
 
 static int mga_freelist_init(drm_device_t *dev)
 {
-       drm_device_dma_t *dma = dev->dma;
+       drm_device_dma_t *dma = dev->dma;
        drm_buf_t *buf;
        drm_mga_buf_priv_t *buf_priv;
        drm_mga_private_t *dev_priv = (drm_mga_private_t *)dev->dev_private;
@@ -766,8 +765,7 @@ static int mga_dma_initialize(drm_device_t *dev, drm_mga_init_t *init) {
                MGA_WRITE(MGAREG_PRIMEND, ((phys_head + num_dwords * 4) |
                                           PDEA_pagpxfer_enable));
 
-                               /* Do we need a looping check? */
-               while(MGA_READ(MGAREG_DWGSYNC) != 0x0100);
+               while(MGA_READ(MGAREG_DWGSYNC) != 0x0100) ;
        }
 
        if(mga_freelist_init(dev) != 0) {
index a8cf0c7..4aaac62 100644 (file)
@@ -29,7 +29,6 @@
  *
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_drv.c,v 1.4 2000/08/28 02:43:15 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
 
 #define MGA_NAME        "mga"
 #define MGA_DESC        "Matrox G200/G400"
-#define MGA_DATE        "20000910"
+#define MGA_DATE        "20000928"
 #define MGA_MAJOR       2
 #define MGA_MINOR       0
-#define MGA_PATCHLEVEL  0
+#define MGA_PATCHLEVEL  1
 
 static drm_device_t          mga_device;
 drm_ctx_t                    mga_res_ctx;
@@ -524,6 +523,7 @@ int mga_release(struct inode *inode, struct file *filp)
                DECLARE_WAITQUEUE(entry, current);
                add_wait_queue(&dev->lock.lock_queue, &entry);
                for (;;) {
+                       current->state = TASK_INTERRUPTIBLE;
                        if (!dev->lock.hw_lock) {
                                /* Device has been unregistered */
                                retcode = -EINTR;
@@ -538,7 +538,6 @@ int mga_release(struct inode *inode, struct file *filp)
                        }
                                /* Contention */
                        atomic_inc(&dev->total_sleeps);
-                       current->state = TASK_INTERRUPTIBLE;
                        schedule();
                        if (signal_pending(current)) {
                                retcode = -ERESTARTSYS;
index 61b7bfc..e37cc2e 100644 (file)
@@ -28,7 +28,6 @@
  *         Jeff Hartmann <jhartmann@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_drv.h,v 1.4 2000/08/28 02:43:15 tsi Exp $ */
 
 #ifndef _MGA_DRV_H_
 #define _MGA_DRV_H_
index c5766dd..9bbd254 100644 (file)
@@ -28,7 +28,6 @@
  *         Keith Whitwell <keithw@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_state.c,v 1.5 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 492e535..77519a5 100644 (file)
@@ -1,6 +1,6 @@
 /* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/picker.c,v 1.3 2000/09/01 02:31:40 tsi Exp $ */
 
-#include <linux/autoconf.h>
+#include <linux/config.h>
 #include <linux/version.h>
 
 #ifndef CONFIG_SMP
index f585e91..ca062a0 100644 (file)
@@ -27,7 +27,6 @@
  * Authors:
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/proc.c,v 1.9 2000/08/28 02:43:15 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 1712aa5..7e76441 100644 (file)
@@ -29,7 +29,6 @@
  *         Jeff Hartmann <jhartmann@valinux.com>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_bufs.c,v 1.3 2000/08/28 02:43:16 tsi Exp $ */
 
 #define __NO_VERSION__
 #include <linux/config.h>
index 9ac4ad8..9cadadb 100644 (file)
@@ -27,7 +27,6 @@
  * Author: Rickard E. (Rik) Faith <faith@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_context.c,v 1.3 2000/08/28 02:43:16 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index dcb766a..7ae4980 100644 (file)
@@ -28,7 +28,6 @@
  *          Kevin E. Martin <martin@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_drv.c,v 1.3 2000/08/28 02:43:16 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -36,7 +35,7 @@
 
 #define R128_NAME       "r128"
 #define R128_DESC       "ATI Rage 128"
-#define R128_DATE       "20000910"
+#define R128_DATE       "20000928"
 #define R128_MAJOR      1
 #define R128_MINOR      0
 #define R128_PATCHLEVEL  0
index 860dbf9..63b98c7 100644 (file)
@@ -28,7 +28,6 @@
  *          Kevin E. Martin <martin@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_drv.h,v 1.4 2000/08/28 02:43:16 tsi Exp $ */
 
 #ifndef _R128_DRV_H_
 #define _R128_DRV_H_
index e13bd85..f2fdf6d 100644 (file)
@@ -30,7 +30,6 @@
  *    Sung-Ching Lin <sclin@sis.com.tw>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_context.c,v 1.3 2000/09/22 11:35:47 alanh Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index dd14a5a..73807f3 100644 (file)
@@ -1,4 +1,3 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_drm_public.h,v 1.2 2000/08/04 03:51:47 tsi Exp $ */
 
 #ifndef _sis_drm_public_h_
 #define _sis_drm_public_h_
index 0b1990b..2f98e32 100644 (file)
@@ -24,7 +24,6 @@
  * DEALINGS IN THE SOFTWARE.
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_drv.c,v 1.5 2000/09/22 11:35:47 alanh Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -575,6 +574,7 @@ int sis_lock(struct inode *inode, struct file *filp, unsigned int cmd,
 #endif
                 add_wait_queue(&dev->lock.lock_queue, &entry);
                 for (;;) {
+                        current->state = TASK_INTERRUPTIBLE;
                         if (!dev->lock.hw_lock) {
                                 /* Device has been unregistered */
                                 ret = -EINTR;
@@ -590,7 +590,6 @@ int sis_lock(struct inode *inode, struct file *filp, unsigned int cmd,
                         
                                 /* Contention */
                         atomic_inc(&dev->total_sleeps);
-                        current->state = TASK_INTERRUPTIBLE;
 #if 1
                        current->policy |= SCHED_YIELD;
 #endif
index 8dd25e0..8c4e291 100644 (file)
@@ -24,7 +24,6 @@
  * DEALINGS IN THE SOFTWARE.
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_drv.h,v 1.3 2000/09/22 11:35:47 alanh Exp $ */
 
 #ifndef _SIS_DRV_H_
 #define _SIS_DRV_H_
index a946a41..6143ad8 100644 (file)
@@ -27,7 +27,6 @@
  *    Sung-Ching Lin <sclin@sis.com.tw>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_ds.c,v 1.2 2000/09/22 11:35:47 alanh Exp $ */
 
 #define __NO_VERSION__
 #include <linux/module.h>
@@ -163,7 +162,6 @@ int setDestroy(set_t *set)
  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_ds.c,v 1.2 2000/09/22 11:35:47 alanh Exp $ */
 
 #define ISFREE(bptr) ((bptr)->free)
 
index 59d58b8..c3367db 100644 (file)
@@ -27,7 +27,6 @@
  *    Sung-Ching Lin <sclin@sis.com.tw>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_ds.h,v 1.3 2000/09/22 11:35:47 alanh Exp $ */
 
 #ifndef _sis_ds_h_
 #define _sis_ds_h_
index f60da78..e6e8ed7 100644 (file)
@@ -27,7 +27,6 @@
  *    Sung-Ching Lin <sclin@sis.com.tw>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/sis_mm.c,v 1.4 2000/09/22 11:35:47 alanh Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 9c07ed8..1fd7331 100644 (file)
@@ -29,7 +29,6 @@
  *    Daryll Strauss <daryll@valinux.com>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/tdfx_context.c,v 1.5 2000/08/28 02:43:16 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index d8f5bcc..5f2c804 100644 (file)
@@ -1,4 +1,4 @@
-/* tdfx.c -- tdfx driver -*- linux-c -*-
+/* tdfx_drv.c -- tdfx driver -*- linux-c -*-
  * Created: Thu Oct  7 10:38:32 1999 by faith@precisioninsight.com
  *
  * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
@@ -29,7 +29,6 @@
  *    Daryll Strauss <daryll@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/tdfx_drv.c,v 1.6 2000/08/28 02:43:16 tsi Exp $ */
 
 #include <linux/config.h>
 #include "drmP.h"
@@ -37,7 +36,7 @@
 
 #define TDFX_NAME       "tdfx"
 #define TDFX_DESC       "3dfx Banshee/Voodoo3+"
-#define TDFX_DATE       "20000910"
+#define TDFX_DATE       "20000928"
 #define TDFX_MAJOR      1
 #define TDFX_MINOR      0
 #define TDFX_PATCHLEVEL  0
index e6ec7aa..bee840e 100644 (file)
@@ -29,7 +29,6 @@
  *    Daryll Strauss <daryll@valinux.com>
  * 
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/tdfx_drv.h,v 1.5 2000/08/28 02:43:16 tsi Exp $ */
 
 #ifndef _TDFX_DRV_H_
 #define _TDFX_DRV_H_
index 4c78be8..964921b 100644 (file)
@@ -28,7 +28,6 @@
  *    Rickard E. (Rik) Faith <faith@valinux.com>
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/vm.c,v 1.8 2000/08/28 02:43:16 tsi Exp $ */
 
 #define __NO_VERSION__
 #include "drmP.h"
index 6cfe88f..7177147 100644 (file)
@@ -31,7 +31,6 @@
  * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic cmpxchg.
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm.h,v 1.9 2000/08/24 22:20:18 tsi Exp $ */
 
 #ifndef _DRM_H_
 #define _DRM_H_
index 6cfe88f..7177147 100644 (file)
@@ -31,7 +31,6 @@
  * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic cmpxchg.
  *
  */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm.h,v 1.9 2000/08/24 22:20:18 tsi Exp $ */
 
 #ifndef _DRM_H_
 #define _DRM_H_