From: Daniel Vetter Date: Sun, 24 Jun 2012 14:42:33 +0000 (+0200) Subject: drm/i915: make enable/disable_gt_powersave locking consistent X-Git-Tag: v3.6-rc1~83^2~39^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79f5b2c7599270aa3dcfffb445f8f520c05a7fc5;p=pandora-kernel.git drm/i915: make enable/disable_gt_powersave locking consistent The enable functions grabbed dev->struct_mutex themselves, whereas the disable functions expected dev->struct_mutex to be held by the caller. Move the locking out to the (currently only) callsite of intel_enable_gt_powersave to make this more consistent. Originally this was prep work for future patches, but I've chased down a totally wrong alley. Still, I think this is a sensible clarification. Reviewed-by: Eugeni Dodonov Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed