]> git.karo-electronics.de Git - linux-beck.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)
commit955b12def42e83287c1bdb1411d99451753c1391
tree5dc5025f500b7a0a86c70ea79f2294e94902e3b2
parentdd8d7cb49e6e61da96ca44174b063081892c4dc6
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