aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author=?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>2006-10-24 10:10:24 -0400
committerairlied <airlied@linux.ie>2006-12-06 23:53:30 -0500
commit2dbb232c4d6b6c89fc367f7566c7c87dd3b56cd7 (patch)
tree1257864d14e28ff6140dae492cc813b106a6e933
parent376642cf2eb0f32d8502b0a2c4efd96a3f13a8b8 (diff)
drm: i915: Fix 'sequence has passed' condition in i915_vblank_swap().
Signed-off-by: Dave Airlie <airlied@linux.ie>
-rw-r--r--drivers/char/drm/i915_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c
index e9e46c41bf36..df28bc1e84c6 100644
--- a/drivers/char/drm/i915_irq.c
+++ b/drivers/char/drm/i915_irq.c
@@ -439,7 +439,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
439 swap.sequence += curseq; 439 swap.sequence += curseq;
440 break; 440 break;
441 case _DRM_VBLANK_ABSOLUTE: 441 case _DRM_VBLANK_ABSOLUTE:
442 if ((curseq - swap.sequence) > (1<<23)) { 442 if ((curseq - swap.sequence) <= (1<<23)) {
443 spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags); 443 spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);
444 DRM_DEBUG("Missed target sequence\n"); 444 DRM_DEBUG("Missed target sequence\n");
445 return DRM_ERR(EINVAL); 445 return DRM_ERR(EINVAL);