]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vblank: Use abs64(diff_ns) for s64 diff_ns instead of abs(diff_ns)
authorMario Kleiner <mario.kleiner@tuebingen.mpg.de>
Mon, 21 Feb 2011 04:42:00 +0000 (05:42 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Feb 2011 00:08:41 +0000 (10:08 +1000)
commit8cc67cd6d166dd9234d643d8adfa07dcb366c6fc
treeb1df3b52e8e4c105b3c1fb8d649d4f741cf18dc7
parent9f461cf0f1a663909976783d29bf69a25548991d
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: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_irq.c