Audit calls to schedule() Remove tags from files shared with Linux kernel
tree Remove debugging statements to make debugging more useful Other minor cleanups in preparation for sync with Linux 2.4.0-test9-pre7main
parent
b0a7efb5a9
commit
39a659e877
|
@ -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.
|
||||
|
|
|
@ -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: *
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
@ -37,10 +36,10 @@
|
|||
|
||||
#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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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: *
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
@ -766,7 +765,6 @@ 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) ;
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
@ -37,10 +36,10 @@
|
|||
|
||||
#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;
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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_
|
||||
|
|
Loading…
Reference in New Issue