drm/i915: Refactor gen6_set_rps
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 Mar 2014 08:24:20 +0000 (08:24 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 31 Mar 2014 08:46:35 +0000 (10:46 +0200)
commiteb64cad1c13a22cd4f3b061720c71f35e44eec20
tree81f51b1115f8af2e985ea57b8cfcf26fd6123feb
parent037bde19a43e299d30f0490bba9be32ab355975c
drm/i915: Refactor gen6_set_rps

What used to be a short-circuit now needs to adjust interrupt masking in
response to user requests for changing the min/max allowed frequencies.
This is currently done by a special case and early return, but the next
patch adds another common action to take, so refactor the code to reduce
duplication.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by:Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c