drm/i915: Refactor the deferred PM_IIR handling into a single function
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 15 Apr 2012 10:56:03 +0000 (11:56 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jul 2012 04:44:26 +0000 (05:44 +0100)
commit2db9d57eedac7a46b62c73eec6a34bc7fa46e14e
treebda0c4678be67fcaf7eb5213150db2f3937965d1
parent3b8a121217806b5fcc2127298c52c0b499cc687b
drm/i915: Refactor the deferred PM_IIR handling into a single function

commit fc6826d1dcd65f3d1e9a5377678882e4e08f02be upstream.

This function, along with the registers and deferred work hander, are
all shared with SandyBridge, IvyBridge and their variants. So remove the
duplicate code into a single function.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[bwh: Backported to 3.2: adjust context; drop changes for Valley View]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/i915/i915_irq.c