drm/i915: move getting struct_mutex lower in the callstack during GPU reset
authorImre Deak <imre.deak@intel.com>
Mon, 14 Apr 2014 17:24:28 +0000 (20:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 07:08:56 +0000 (09:08 +0200)
commitdc1d0136a48d7ad858b5158413def90b9d818503
treee7177d5391fa89beb97a5c06fdc2556456ee246b
parentd46c05175e0da37ad2795c775161f15302ce6c89
drm/i915: move getting struct_mutex lower in the callstack during GPU reset

Getting struct_mutex around the whole intel_enable_gt_powersave()
function is not necessary, since it's only needed for the ILK path
therein.

This will make intel_enable_gt_powersave() useable on the RPM resume
path for >=GEN6 (added in an upcoming patch to reset the RPS state
during RPM resume), where we can't (and need not) get this mutex.

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_pm.c