]> git.baikalelectronics.ru Git - kernel.git/commit
staging: drm/omap: use current time for page-flip event
authorRob Clark <rob@ti.com>
Mon, 12 Mar 2012 02:11:22 +0000 (21:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Mar 2012 22:44:44 +0000 (15:44 -0700)
commit8620843a1c9602bfb3e2423cccf80c0180488be7
tree9466f72dd5d487c5d16d444fe30a9c82467fc269
parentec1dbc26a35d5501f9d166a2dc0a534661daae3e
staging: drm/omap: use current time for page-flip event

Because we don't have vblank hooked up via drm_irq (which is a bit
awkward due to separation between omapdss (which knows the irq #)
and omapdrm, for now use gettimeofday to have a semi-sane timestamp
in the page-flip event.  Otherwise apps like weston drm compositor,
which use the timestamp in it's animations, get highly confused.

Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_crtc.c