drm/info: Remove unused code
authorThierry Reding <treding@nvidia.com>
Tue, 16 Dec 2014 11:02:13 +0000 (12:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 16 Dec 2014 17:44:34 +0000 (18:44 +0100)
Commit 28a62277e06f ("drm: Convert proc files to seq_file and introduce
debugfs") converted /proc files to debugfs and in the process dropped
the entry for the vblank statistics. Since that file has been gone for
almost five years, there is no use to keep the code that provides the
file's content around.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_info.c
drivers/gpu/drm/drm_internal.h

index 51efebd434f302d61134c2eb384935ef4c1b2521..f1b32f91d94163bcdca46a6ee5f29bd789e23336 100644 (file)
@@ -152,30 +152,6 @@ int drm_bufs_info(struct seq_file *m, void *data)
        return 0;
 }
 
-/**
- * Called when "/proc/dri/.../vblank" is read.
- */
-int drm_vblank_info(struct seq_file *m, void *data)
-{
-       struct drm_info_node *node = (struct drm_info_node *) m->private;
-       struct drm_device *dev = node->minor->dev;
-       int crtc;
-
-       mutex_lock(&dev->struct_mutex);
-       for (crtc = 0; crtc < dev->num_crtcs; crtc++) {
-               seq_printf(m, "CRTC %d enable:     %d\n",
-                          crtc, atomic_read(&dev->vblank[crtc].refcount));
-               seq_printf(m, "CRTC %d counter:    %d\n",
-                          crtc, drm_vblank_count(dev, crtc));
-               seq_printf(m, "CRTC %d last wait:  %d\n",
-                          crtc, dev->vblank[crtc].last_wait);
-               seq_printf(m, "CRTC %d in modeset: %d\n",
-                          crtc, dev->vblank[crtc].inmodeset);
-       }
-       mutex_unlock(&dev->struct_mutex);
-       return 0;
-}
-
 /**
  * Called when "/proc/dri/.../clients" is read.
  *
index 7cc0a3516871f493e74a74a2d38b600e0802c3c4..12a61d70682785a1078e5f398064d3a4dd659b10 100644 (file)
@@ -55,7 +55,6 @@ void drm_prime_remove_buf_handle_locked(struct drm_prime_file_private *prime_fpr
 int drm_name_info(struct seq_file *m, void *data);
 int drm_vm_info(struct seq_file *m, void *data);
 int drm_bufs_info(struct seq_file *m, void *data);
-int drm_vblank_info(struct seq_file *m, void *data);
 int drm_clients_info(struct seq_file *m, void* data);
 int drm_gem_name_info(struct seq_file *m, void *data);