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)
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>

No differences found