drm/i915: don't grab dev->struct_mutex for userspace forcewak
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Aug 2012 20:33:58 +0000 (22:33 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 12 Aug 2012 09:28:49 +0000 (11:28 +0200)
commit20d5a540e55a29daeef12706f9ee73baf5641c16
tree71d1ba4e14dd164ef8b9ad5888b630868df35ca5
parent126e9be816e7c0322f5dac994f94d65a8fabcc56
drm/i915: don't grab dev->struct_mutex for userspace forcewak

Since forcewake is now protected by a spinlock, we don't need to grab
dev->struct_mutex any more. This way we can also get rid of a stale
comment, noticed by Ben Widawsky while reviewing some locking changes.

v2: Kill the unused variable ret, noticed by Fengguang Wu.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c