summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-09-06 01:32:09 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-09-06 01:32:09 +0000
commitb3e0f5fb6df7bc3ae331ed3e101c3b25d5d5ebff (patch)
tree071431f644926105f6377a2732b1ac13470c33b0 /sys/dev/pci/drm/drm_drv.c
parent2f96ad35136fa139ba5033b2fdb3172ec0a37287 (diff)
Kill the stats data structures and noop some other parts. Nothing in
userland asks for these stats, and we stopped recording anything interesting a while back.
Diffstat (limited to 'sys/dev/pci/drm/drm_drv.c')
-rw-r--r--sys/dev/pci/drm/drm_drv.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index 45a6b7d97f9..91dfd2eea09 100644
--- a/sys/dev/pci/drm/drm_drv.c
+++ b/sys/dev/pci/drm/drm_drv.c
@@ -356,17 +356,6 @@ drm_firstopen(struct drm_device *dev)
return i;
}
- dev->counters = 6;
- dev->types[0] = _DRM_STAT_LOCK;
- dev->types[1] = _DRM_STAT_OPENS;
- dev->types[2] = _DRM_STAT_CLOSES;
- dev->types[3] = _DRM_STAT_IOCTLS;
- dev->types[4] = _DRM_STAT_LOCKS;
- dev->types[5] = _DRM_STAT_UNLOCKS;
-
- for (i = 0; i < DRM_ARRAY_SIZE(dev->counts); i++)
- atomic_set(&dev->counts[i], 0);
-
dev->magicid = 1;
SPLAY_INIT(&dev->magiclist);
@@ -495,7 +484,6 @@ drmopen(DRM_CDEV kdev, int flags, int fmt, DRM_STRUCTPROC *p)
retcode = drm_open_helper(kdev, flags, fmt, p, dev);
if (retcode == 0) {
- atomic_inc(&dev->counts[_DRM_STAT_OPENS]);
DRM_LOCK();
if (dev->open_count++ == 0)
retcode = drm_firstopen(dev);
@@ -556,7 +544,6 @@ drmclose(DRM_CDEV kdev, int flags, int fmt, DRM_STRUCTPROC *p)
if (drm_lock_take(&dev->lock, DRM_KERNEL_CONTEXT)) {
dev->lock.file_priv = file_priv;
dev->lock.lock_time = jiffies;
- atomic_inc(&dev->counts[_DRM_STAT_LOCKS]);
break; /* Got lock */
}
/* Contention */
@@ -586,7 +573,6 @@ drmclose(DRM_CDEV kdev, int flags, int fmt, DRM_STRUCTPROC *p)
*/
done:
- atomic_inc(&dev->counts[_DRM_STAT_CLOSES]);
if (--dev->open_count == 0) {
retcode = drm_lastclose(dev);
}
@@ -621,7 +607,6 @@ drmioctl(DRM_CDEV kdev, u_long cmd, caddr_t data, int flags,
return EINVAL;
}
- atomic_inc(&dev->counts[_DRM_STAT_IOCTLS]);
++file_priv->ioctl_count;
DRM_DEBUG("pid=%d, cmd=0x%02lx, nr=0x%02x, dev 0x%lx, auth=%d\n",