summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-04-22 10:18:29 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-04-22 10:18:29 +0000
commit056762a9104997569b09416c35d9a0bfef175e1f (patch)
tree1f152e0cc367a5321f735ea974d1eae3e13e4781 /linux-core/drm_drv.c
parent5141da97f680235d10d74737d5444963d2080072 (diff)
remove unused dma histogram code
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 848a2f11..78cd3782 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -925,11 +925,6 @@ int DRM(lock)( struct inode *inode, struct file *filp,
#if __HAVE_MULTIPLE_DMA_QUEUES
drm_queue_t *q;
#endif
-#if __HAVE_DMA_HISTOGRAM
- cycles_t start;
-
- dev->lck_start = start = get_cycles();
-#endif
++priv->lock_count;
@@ -1021,9 +1016,6 @@ int DRM(lock)( struct inode *inode, struct file *filp,
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 ret;
}