From: Chris Wilson Date: Sat, 7 Aug 2010 10:01:35 +0000 (+0100) Subject: drm/i915: Ensure that while(INREG()) are bounded (v2) X-Git-Tag: v2.6.36-rc2~2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=913d8d110078788c14812dce8bb62c37946821d2;p=pandora-kernel.git drm/i915: Ensure that while(INREG()) are bounded (v2) Add a new macro, wait_for, to simplify the act of waiting on a register to change state. wait_for() takes three arguments, the condition to inspect on every loop, the maximum amount of time to wait and whether to yield the cpu for a length of time after each check. v2: Upgrade failure messages to DRM_ERROR on the suggestion of Eric Anholt. We do not expect to hit these conditions as they reflect programming errors, so if we do we want to be notified. Signed-off-by: Chris Wilson Signed-off-by: Eric Anholt --- Reading git-diff-tree failed