Files
linux/drivers/gpu/drm
Rob Clark 56c2da8338 drm/msm: fix timeout calculation
The 'timeout' value comes from userspace (CLOCK_MONOTONIC), but
converting this directly to jiffies doesn't take into account the
initial jiffies count at boot, which may differ from the base time
of CLOCK_MONOTONIC.

TODO: add ktime_delta_jiffies() when rebasing on 4.1 and use that
instead of ktime_sub/ktime_to_timespec/timespec_to_jiffies combo (as
suggested by Arnd)

v2: switch over from 'struct timespec' to ktime_t throughout, since
'struct timespec' will be deprecated (as suggested by Arnd)
v3: minor cosmetic tweaks

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2015-06-11 13:11:06 -04:00
..
2015-06-10 15:05:33 -04:00
2015-06-04 09:23:51 +10:00
2015-06-11 13:11:06 -04:00
2015-06-04 09:23:51 +10:00
2015-05-26 16:17:06 +10:00
2015-06-11 13:16:35 +10:00
2015-05-26 15:50:42 +02:00
2015-05-05 09:46:38 +02:00
2015-03-13 17:37:35 +01:00
2015-03-13 17:37:35 +01:00
2015-05-29 09:17:57 +10:00
2015-03-13 17:37:35 +01:00
2015-03-13 17:37:35 +01:00
2015-06-03 21:03:15 -04:00
2015-06-03 21:03:15 -04:00