From 056762a9104997569b09416c35d9a0bfef175e1f Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 22 Apr 2003 10:18:29 +0000 Subject: remove unused dma histogram code --- linux/drm_context.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'linux/drm_context.h') diff --git a/linux/drm_context.h b/linux/drm_context.h index 944e1be2..646b2236 100644 --- a/linux/drm_context.h +++ b/linux/drm_context.h @@ -227,9 +227,6 @@ int DRM(context_switch)( drm_device_t *dev, int old, int new ) return -EBUSY; } -#if __HAVE_DMA_HISTOGRAM - dev->ctx_start = get_cycles(); -#endif DRM_DEBUG( "Context switch from %d to %d\n", old, new ); @@ -257,11 +254,6 @@ int DRM(context_switch_complete)( drm_device_t *dev, int new ) /* If a context switch is ever initiated when the kernel holds the lock, release that lock here. */ -#if __HAVE_DMA_HISTOGRAM - atomic_inc( &dev->histo.ctx[DRM(histogram_slot)(get_cycles() - - dev->ctx_start)] ); - -#endif clear_bit( 0, &dev->context_flag ); wake_up( &dev->context_wait ); -- cgit v1.2.3