]> 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)
commitc092482d92c0df3cc5138575476302d9775654a6
tree482d3464716841c78fc9ffd03238e7465d8f72dc
parent28187f1a2b2c88e95082de6a9b20fb876e387b57
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