drm/i915: Defer accounting until read from debugfs
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Nov 2010 12:23:44 +0000 (12:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 Nov 2010 15:04:53 +0000 (15:04 +0000)
commit6299f992c0491232f008028a1f40bc9d86c4c76c
tree7c8d2a23fa6a749ffe5a918bb06c4b78d63a0e26
parent2021746e1d5ad1e3b51e24480c566acbb833c7c1
drm/i915: Defer accounting until read from debugfs

Simply remove our accounting of objects inside the aperture, keeping
only track of what is in the aperture and its current usage. This
removes the over-complication of BUGs that were attempting to keep the
accounting correct and also removes the overhead of the accounting on
the hot-paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c