From e21473c88853bb6f539ecca1c76e692d748bb722 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 24 Apr 2003 00:37:35 +0000 Subject: Remove DRM_DMA_HISTOGRAM and associated code. --- bsd/drm_drv.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'bsd/drm_drv.h') diff --git a/bsd/drm_drv.h b/bsd/drm_drv.h index 4de2d3b5..4fd47b7d 100644 --- a/bsd/drm_drv.h +++ b/bsd/drm_drv.h @@ -514,9 +514,6 @@ static int DRM(setup)( drm_device_t *dev ) #endif dev->context_wait = 0; - dev->ctx_start = 0; - dev->lck_start = 0; - #ifdef __FreeBSD__ dev->buf_sigio = NULL; #elif defined(__NetBSD__) @@ -1122,11 +1119,6 @@ int DRM(lock)( DRM_IOCTL_ARGS ) #if __HAVE_MULTIPLE_DMA_QUEUES drm_queue_t *q; #endif -#if __HAVE_DMA_HISTOGRAM - cycles_t start; - - dev->lck_start = start = get_cycles(); -#endif DRM_COPY_FROM_USER_IOCTL( lock, (drm_lock_t *)data, sizeof(lock) ); @@ -1203,10 +1195,6 @@ int DRM(lock)( DRM_IOCTL_ARGS ) DRM_DEBUG( "%d %s\n", lock.context, ret ? "interrupted" : "has lock" ); -#if __HAVE_DMA_HISTOGRAM - atomic_inc(&dev->histo.lacq[DRM(histogram_slot)(get_cycles()-start)]); -#endif - return DRM_ERR(ret); } -- cgit v1.2.3