diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-03-29 18:22:28 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-03-29 18:22:28 +0000 |
commit | aea0418d0db3338b81f83abf26df99dfd7ac85bc (patch) | |
tree | f650b40186e73c15787df90dc43d3edc05aa6b34 /bsd/drm_drv.h | |
parent | 6ef79263b68402687ccc2b7447dd908c00e35057 (diff) |
Remove dead vma code and remove the unused devstate struct definition.
Diffstat (limited to 'bsd/drm_drv.h')
-rw-r--r-- | bsd/drm_drv.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bsd/drm_drv.h b/bsd/drm_drv.h index 74655ee9..d43a4666 100644 --- a/bsd/drm_drv.h +++ b/bsd/drm_drv.h @@ -433,7 +433,6 @@ static int DRM(setup)( drm_device_t *dev ) DRIVER_PRESETUP(); atomic_set( &dev->ioctl_count, 0 ); - atomic_set( &dev->vma_count, 0 ); dev->buf_use = 0; atomic_set( &dev->buf_alloc, 0 ); @@ -496,7 +495,6 @@ static int DRM(setup)( drm_device_t *dev ) TAILQ_INIT(dev->maplist); dev->map_count = 0; - dev->vmalist = NULL; dev->lock.hw_lock = NULL; dev->lock.lock_queue = 0; dev->queue_count = 0; @@ -550,7 +548,6 @@ static int DRM(takedown)( drm_device_t *dev ) drm_magic_entry_t *pt, *next; drm_local_map_t *map; drm_map_list_entry_t *list; - drm_vma_entry_t *vma, *vma_next; int i; DRM_DEBUG( "\n" ); @@ -607,15 +604,6 @@ static int DRM(takedown)( drm_device_t *dev ) } #endif - /* Clear vma list (only built for debugging) */ - if ( dev->vmalist ) { - for ( vma = dev->vmalist ; vma ; vma = vma_next ) { - vma_next = vma->next; - DRM(free)( vma, sizeof(*vma), DRM_MEM_VMAS ); - } - dev->vmalist = NULL; - } - if( dev->maplist ) { while ((list=TAILQ_FIRST(dev->maplist))) { map = list->map; |