]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 25 Apr 2014 07:52:10 +0000 (09:52 +0200)
commit586d5270b60dc1f35cc3ca982d403765bad77965
tree131864be399cd784d37cda587c72d2277bb84824
parentfeece62c2dd7992212a4b45409e187909f27c1ef
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