drm/i915: unify gen6/gen8 pm irq helpers
authorImre Deak <imre.deak@intel.com>
Wed, 5 Nov 2014 18:48:31 +0000 (20:48 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Nov 2014 09:29:15 +0000 (10:29 +0100)
commita72fbc3a14f071d75bccb07ab5148d44f0af77eb
tree8eb63111cb569853b91723fe67df9ee8ad3a5c6b
parent952890098a14043fe7acc5f595c6306c69baf40d
drm/i915: unify gen6/gen8 pm irq helpers

The helpers to enable/disable PM IRQs for GEN6 and GEN8 are the same
except for the PM interrupt mask register, so abstract away this
register in the GEN6 versions and use these everywhere.

No functional change.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c