[PATCH] drm/vblank: Fix vblank timestamp debugs
Arnd Bergmann
arnd at arndb.de
Mon Nov 13 15:16:32 UTC 2017
On Mon, Nov 13, 2017 at 4:02 PM, Ville Syrjala
<ville.syrjala at linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> 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")
Acked-by: Arnd Bergmann <arnd at arndb.de>
Sorry about the mess and thanks for cleaning up behind me.
Arnd
More information about the dri-devel
mailing list