Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233589
b: refs/heads/master
c: c4cc383
h: refs/heads/master
i:
  233587: 4e6fc56
v: v3
  • Loading branch information
Mario Kleiner authored and Dave Airlie committed Feb 23, 2011
1 parent 733f714 commit 7d0963d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e40b6fc8373314666e7853733dc0ca4049a68b95
refs/heads/master: c4cc383915549cf14f027f374904e30c13653dac
4 changes: 2 additions & 2 deletions trunk/drivers/gpu/drm/drm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static void vblank_disable_and_save(struct drm_device *dev, int crtc)
* available. In that case we can't account for this and just
* hope for the best.
*/
if ((vblrc > 0) && (abs(diff_ns) > 1000000))
if ((vblrc > 0) && (abs64(diff_ns) > 1000000))
atomic_inc(&dev->_vblank_count[crtc]);

/* Invalidate all timestamps while vblank irq's are off. */
Expand Down Expand Up @@ -1293,7 +1293,7 @@ bool drm_handle_vblank(struct drm_device *dev, int crtc)
* e.g., due to spurious vblank interrupts. We need to
* ignore those for accounting.
*/
if (abs(diff_ns) > DRM_REDUNDANT_VBLIRQ_THRESH_NS) {
if (abs64(diff_ns) > DRM_REDUNDANT_VBLIRQ_THRESH_NS) {
/* Store new timestamp in ringbuffer. */
vblanktimestamp(dev, crtc, vblcount + 1) = tvblank;
smp_wmb();
Expand Down

0 comments on commit 7d0963d

Please sign in to comment.