From: Ben Widawsky Date: Mon, 25 Apr 2011 18:23:07 +0000 (-0700) Subject: drm/i915: reference counted forcewake X-Git-Tag: v3.0-rc3~42^2~49^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcca7926299944841569515da321bef9655b7703;p=pandora-kernel.git drm/i915: reference counted forcewake Provide a reference count to track the forcewake state of the GPU and give a safe mechanism for userspace to wake the GT. This also potentially saves a UC read if the GT is known to be awake already. The reference count is atomic, but the register access and hardware wake sequence is protected by struct_mutex. Signed-off-by: Ben Widawsky Signed-off-by: Chris Wilson --- Reading git-diff-tree failed