]> git.baikalelectronics.ru Git - kernel.git/commit
drm: make frame duration time calculation more precise
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 27 Dec 2012 01:01:46 +0000 (01:01 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2013 04:00:48 +0000 (14:00 +1000)
commit593afa55ec474a75146da88951ffeac8b3ccb4c3
treed98adc99ef6bbccb40bcebdcdbc317bbceca1640
parent8e3e9ab87a3a09c9c8e2e6d3200c2a00651a7974
drm: make frame duration time calculation more precise

It is a bit more precise to compute the total number of pixels first and
then divide, rather than multiplying the line pixel count by the
already-rounded line duration.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_irq.c