summaryrefslogtreecommitdiff
path: root/linux/drm_vm.h
diff options
context:
space:
mode:
authorJeff Hartmann <jhartmann@valinux.com>2001-02-19 17:56:45 +0000
committerJeff Hartmann <jhartmann@valinux.com>2001-02-19 17:56:45 +0000
commit18e03c15b7c66f467d244e30ac78bfeccbebd76e (patch)
tree106d281d7151a8de87d6f17706ba77939a5b8cc7 /linux/drm_vm.h
parent989d5fa4d5e6d36f931fc5498f5d27ba8585a7d3 (diff)
Removed DRM_DEBUG_CODE #defines around vma book keeping, since we will need
it to keep drmRmMap safe
Diffstat (limited to 'linux/drm_vm.h')
-rw-r--r--linux/drm_vm.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/linux/drm_vm.h b/linux/drm_vm.h
index 30aba490..23758779 100644
--- a/linux/drm_vm.h
+++ b/linux/drm_vm.h
@@ -163,8 +163,6 @@ void DRM(vm_open)(struct vm_area_struct *vma)
MOD_INC_USE_COUNT; /* Needed before Linux 2.3.51 */
#endif
-
-#if DRM_DEBUG_CODE
vma_entry = DRM(alloc)(sizeof(*vma_entry), DRM_MEM_VMAS);
if (vma_entry) {
down(&dev->struct_sem);
@@ -174,7 +172,6 @@ void DRM(vm_open)(struct vm_area_struct *vma)
dev->vmalist = vma_entry;
up(&dev->struct_sem);
}
-#endif
}
void DRM(vm_close)(struct vm_area_struct *vma)
@@ -192,7 +189,6 @@ void DRM(vm_close)(struct vm_area_struct *vma)
#endif
atomic_dec(&dev->vma_count);
-#if DRM_DEBUG_CODE
down(&dev->struct_sem);
for (pt = dev->vmalist, prev = NULL; pt; prev = pt, pt = pt->next) {
if (pt->vma == vma) {
@@ -206,7 +202,6 @@ void DRM(vm_close)(struct vm_area_struct *vma)
}
}
up(&dev->struct_sem);
-#endif
}
int DRM(mmap_dma)(struct file *filp, struct vm_area_struct *vma)