[PATCH 2/2] drm: add support for monotonic vblank timestamps
Michel Dänzer
michel at daenzer.net
Wed Oct 24 01:08:44 PDT 2012
On Die, 2012-10-23 at 21:53 +0300, Imre Deak wrote:
> Jumps in the vblank and page flip event timestamps cause trouble for
> clients, so we should avoid them. The timestamp we get currently with
> gettimeofday can jump, so use instead monotonic timestamps.
>
> For backward compatibility use a module flag to revert back to using
> gettimeofday timestamps. Add also a DRM_CAP_TIMESTAMP_MONOTONIC flag
> that is simply a read only version of the module flag, so that clients
> can query this without depending on sysfs.
>
> Signed-off-by: Imre Deak <imre.deak at intel.com>
drm_timestamp_monotonic should probably be a bool rather than an int.
Looks good to me otherwise, as does patch 1.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
More information about the dri-devel
mailing list