From: Daniel Vetter Date: Wed, 27 Mar 2013 23:03:25 +0000 (+0100) Subject: drm/i915: fix up _wait_for macro X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~55^2~51^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d5bfac96f1e1856fbdb3f06679691e5b9c2ba8f;p=pandora-kernel.git drm/i915: fix up _wait_for macro As Thomas Gleixner spotted, it's rather horrible racy: - We can miss almost a full tick, so need to compensate by 1 jiffy. - We need to re-check the condition when having timed-out, since a the last check could have been before the timeout expired. E.g. when we've been preempted or a long irq happened. Cc: Thomas Gleixner Reported-by: Jack Winter Cc: Jack Winter Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed