|
@@ -261,7 +261,7 @@ static void vblank_disable_and_save(struct drm_device *dev, unsigned int pipe)
|
|
* available. In that case we can't account for this and just
|
|
* available. In that case we can't account for this and just
|
|
* hope for the best.
|
|
* hope for the best.
|
|
*/
|
|
*/
|
|
- if (vblrc && (abs64(diff_ns) > 1000000))
|
|
|
|
|
|
+ if (vblrc && (abs(diff_ns) > 1000000))
|
|
store_vblank(dev, pipe, 1, &tvblank);
|
|
store_vblank(dev, pipe, 1, &tvblank);
|
|
|
|
|
|
spin_unlock_irqrestore(&dev->vblank_time_lock, irqflags);
|
|
spin_unlock_irqrestore(&dev->vblank_time_lock, irqflags);
|
|
@@ -1772,7 +1772,7 @@ bool drm_handle_vblank(struct drm_device *dev, unsigned int pipe)
|
|
* e.g., due to spurious vblank interrupts. We need to
|
|
* e.g., due to spurious vblank interrupts. We need to
|
|
* ignore those for accounting.
|
|
* ignore those for accounting.
|
|
*/
|
|
*/
|
|
- if (abs64(diff_ns) > DRM_REDUNDANT_VBLIRQ_THRESH_NS)
|
|
|
|
|
|
+ if (abs(diff_ns) > DRM_REDUNDANT_VBLIRQ_THRESH_NS)
|
|
store_vblank(dev, pipe, 1, &tvblank);
|
|
store_vblank(dev, pipe, 1, &tvblank);
|
|
else
|
|
else
|
|
DRM_DEBUG("crtc %u: Redundant vblirq ignored. diff_ns = %d\n",
|
|
DRM_DEBUG("crtc %u: Redundant vblirq ignored. diff_ns = %d\n",
|