diff options
| author | Arnd Bergmann <[email protected]> | 2018-01-16 17:18:43 +0000 |
|---|---|---|
| committer | Thomas Hellstrom <[email protected]> | 2018-03-22 11:08:24 +0000 |
| commit | 37efe80ce85f76b3b30d7b4ea40550e6a5a5b71a (patch) | |
| tree | 4863a9a3d3ed10a377033427a67300ba3d8e781c /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | |
| parent | drm/vmwgfx: Unpin the screen object backup buffer when not used (diff) | |
| download | kernel-37efe80ce85f76b3b30d7b4ea40550e6a5a5b71a.tar.gz kernel-37efe80ce85f76b3b30d7b4ea40550e6a5a5b71a.zip | |
drm/vmwgfx: use monotonic event timestamps
DRM_VMW_EVENT_FENCE_SIGNALED (struct drm_vmw_event_fence) and
DRM_EVENT_VBLANK (struct drm_event_vblank) pass timestamps in 32-bit
seconds/microseconds format.
As of commit c61eef726a78 ("drm: add support for monotonic vblank
timestamps"), other DRM drivers use monotonic times for drm_event_vblank,
but vmwgfx still uses CLOCK_REALTIME for both events, which suffers from
the y2038/y2106 overflow as well as time jumps.
For consistency, this changes vmwgfx to use ktime_get_ts64 as well,
which solves those problems and avoids the deprecated do_gettimeofday()
function.
This should be transparent to to user space, as long as it doesn't
compare the time against the result of gettimeofday().
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Thomas Hellstrom <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions
