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)
commit7411f9cfe67f5dd54333d2fe7e2a677c42666f99
tree9466f72dd5d487c5d16d444fe30a9c82467fc269
parent72d0c3363e88d1816b0fef3687ff58e6553a7889
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