drm/i915: Extract reading INSTDONE
authorBen Widawsky <ben@bwidawsk.net>
Thu, 23 Aug 2012 22:18:09 +0000 (15:18 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Aug 2012 14:57:54 +0000 (16:57 +0200)
commitbd9854f995f56f4bc3f0dc32dc92be02303c6f19
tree5e3f60f401bcafd6884723ed501508895ed11ef7
parent3236f57a0162391f84b93f39fc1882c49a8998c7
drm/i915: Extract reading INSTDONE

INSTDONE is used in many places, and it varies from generation to
generation. This provides a good reason for us to extract the logic to
read the relevant information.

The patch has no functional change. It's prep for some new stuff.

v2: move the memset inside of i915_get_extra_instdone (Jani)
v3,4: bugs caught by (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h