etnaviv: drm: Normalize nano seconds
authorGuido Günther <agx@sigxcpu.org>
Thu, 23 Jan 2020 08:20:00 +0000 (09:20 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sun, 10 May 2020 07:32:12 +0000 (07:32 +0000)
commit56f955e4850035d915a2a87e2ebea7fa66ab5e19
treed69b8942d5715c7e60d547d54aa881af55444e59
parent022327f7535a7d27f965af7c318005a56b44ab85
etnaviv: drm: Normalize nano seconds

Make sure the nano second part is less than one second. This matches
what clock_settime expects and allows for more concise kernel
interfaces.

Signed-off-by: Guido Günther <guido.gunther@puri.sm>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3534>
src/etnaviv/drm/etnaviv_priv.h