Skip to content
Commit c4cc3839 authored by Mario Kleiner's avatar Mario Kleiner Committed by Dave Airlie
Browse files

drm/vblank: Use abs64(diff_ns) for s64 diff_ns instead of abs(diff_ns)



Use of abs() wrongly wrapped diff_ns to 32 bit, which gives a 1/4000
probability of a missed vblank increment at each vblank irq reenable
if the kms driver doesn't support high precision vblank timestamping.
Not a big deal in practice, but let's make it nice.

Signed-off-by: default avatarMario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent e40b6fc8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment