]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/gpu: avoid deprecated do_gettimeofday
authorArnd Bergmann <arnd@arndb.de>
Thu, 26 Jul 2018 12:39:25 +0000 (14:39 +0200)
committerRob Clark <robdclark@gmail.com>
Mon, 30 Jul 2018 12:50:12 +0000 (08:50 -0400)
commit4101eb6e567222a5689664a4cd56a2f1e0f3ff0b
tree6d1c5d8861de19444857923437fe9584d81a41a0
parent374f8aacc6258ce28005088a773af1f81793559c
drm/msm/gpu: avoid deprecated do_gettimeofday

All users of do_gettimeofday() have been removed, but this one recently
crept in, along with an incorrect printing of the microseconds portion.

This converts it to using ktime_get_real_timespec64() as a direct
replacement, and adds the leading zeroes. I considered using monotonic
times (ktime_get()) instead, but as this timestamp appears to only
be used for humans rather than compared with other timestamps, the
real time domain is probably good enough.

Fixes: e43b045e2c82 ("drm/msm/gpu: Capture the state of the GPU")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.h