]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Convert proc files to seq_file and introduce debugfs
authorBen Gamari <bgamari@gmail.com>
Wed, 18 Feb 2009 01:08:49 +0000 (20:08 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:24:07 +0000 (14:24 +1000)
commitb0798bc5643042883d83c675df0b136c149e6264
tree5dc5025f500b7a0a86c70ea79f2294e94902e3b2
parentdf754f3b5bf2bb6a8c4feaf6443681611c5922fa
drm: Convert proc files to seq_file and introduce debugfs

The old mechanism to formatting proc files is extremely ugly. The
seq_file API was designed specifically for cases like this and greatly
simplifies the process.

Also, most of the files in /proc really don't belong there. This patch
introduces the infrastructure for putting these into debugfs and exposes
all of the proc files in debugfs as well.

This contains the i915 hooks rewrite as well, to make bisectability better.

Signed-off-by: Ben Gamari <bgamari@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
12 files changed:
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_info.c [new file with mode: 0644]
drivers/gpu/drm/drm_proc.c
drivers/gpu/drm/drm_stub.c
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_gem_proc.c [deleted file]
include/drm/drmP.h