linux_dsm_epyc7002/drivers/gpu/drm/via
Arnd Bergmann de7e8bd01a drm: via: use ktime_get() instead of do_gettimeofday
We want to remove uses of do_gettimeofday() from the kernel since the
resulting timeval structure overflows in 2038. This is not a problem for
this particular use, but do_gettimeofday() is also not an appropriate
method for measuring time intervals, since it requires a conversion into
microseconds and is complicated to work with.

ktime_get() is a better replacement, as it works with the monontonic
kernel timebase and requires a minimum of computation.

I'm slightly changing the output from microseconds to nanoseconds here,
to avoid introducing a new division operation. This should be fine
since the value is only used for debugging.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171104212131.2939989-1-arnd@arndb.de
2017-11-06 10:21:39 +01:00
..
Makefile drm/via: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:14:05 +02:00
via_3d_reg.h
via_dma.c
via_dmablit.c
via_dmablit.h
via_drv.c drm/pci: Deprecate drm_pci_init/exit completely 2017-06-20 10:41:03 +02:00
via_drv.h drm: via: use ktime_get() instead of do_gettimeofday 2017-11-06 10:21:39 +01:00
via_irq.c drm: via: use ktime_get() instead of do_gettimeofday 2017-11-06 10:21:39 +01:00
via_map.c
via_mm.c
via_verifier.c drm/via: use ARRAY_SIZE 2017-10-16 11:29:28 +02:00
via_verifier.h
via_video.c