drm/i915: make runtime PM interrupt enable/disable platform independent
authorImre Deak <imre.deak@intel.com>
Mon, 14 Apr 2014 17:24:37 +0000 (20:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 07:09:07 +0000 (09:09 +0200)
commitb5478bcd5f04c3eef934f506a98c8849bb410cd9
treed52fa7e75e5d52f541fa450f4e1a800728e093fa
parentaeab0b5af7df88284d101abf8d121f0e913b81ff
drm/i915: make runtime PM interrupt enable/disable platform independent

We need to disable the interrupts for all platforms, so make the helpers
for this platform independent and call them from them platform
independent runtime suspend/resume callbacks.

On HSW/BDW this will move interrupt disabling/re-enabling at the
beginning/end of runtime suspend/resume respectively, but I don't see
any reason why this would cause a problem there. In any case this seems
to be the correct thing to do even on those platforms.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_display.c