aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2017-11-13 15:02:10 +0000
committerVille Syrjälä <[email protected]>2017-11-29 13:10:53 +0000
commitbcbec31ce500fe036f75a19bca5c73bfa6dd420b (patch)
tree72afef93301b9f19150ca7dadeff7af5bb071e36 /drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
parentdrm/via: use monotonic time for VIA_WAIT_IRQ (diff)
downloadkernel-bcbec31ce500fe036f75a19bca5c73bfa6dd420b.tar.gz
kernel-bcbec31ce500fe036f75a19bca5c73bfa6dd420b.zip
drm/vblank: Fix vblank timestamp debugs
We're currently calling ktime_to_timespec64() on stack garbage hence the debug output for vblank timestamps also contains garbage. Let's assing something to the ktime_t first before we go converting it to a timespec. While at it micro-optimize the ktime_to_timespec64() calls away when vblank debugging isn't enabled. Fixes: 67680d3c0464 ("drm: vblank: use ktime_t instead of timeval") Cc: Arnd Bergmann <[email protected]> Cc: Keith Packard <[email protected]> Cc: Sean Paul <[email protected]> Cc: Dave Airlie <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Acked-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c')
0 files changed, 0 insertions, 0 deletions