Re: [PATCH] drm/vblank: Fix vblank timestamp debugs

2017-11-13 Thread Arnd Bergmann
On Mon, Nov 13, 2017 at 4:02 PM, Ville Syrjala wrote: > From: Ville Syrjälä > > 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 time

[PATCH] drm/vblank: Fix vblank timestamp debugs

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä 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