]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Piggy back hangstats off of contexts
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 6 Dec 2013 22:11:20 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:51:58 +0000 (15:51 +0100)
commit5c188a9d88026dd4d0c35e90ed3215706f734579
tree482d3464716841c78fc9ffd03238e7465d8f72dc
parente4305484d3d1d12cae72f37e67fd76e8903ead20
drm/i915: Piggy back hangstats off of contexts

To simplify the codepaths somewhat, we can simply always create a
context. Contexts already keep hangstat information. This prevents us
from having to differentiate at other parts in the code.

There is allocation overhead, but it should not be measurable.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_context.c