drm: Use ktime_mono_to_real()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:26 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 17:18:03 +0000 (10:18 -0700)
commitd2cb58c85ce4789caafa66fa8f1c641ab2504ead
treec2676c12e5058c0ac7582a5d14bacb7298728536
parent5cac2f4d1c5f3eb3d981fab85d926d19f7b6b889
drm: Use ktime_mono_to_real()

Convert the monotonic timestamp with ktime_mono_to_real() in
drm_calc_vbltimestamp_from_scanoutpos().

In get_drm_timestamp we can call either ktime_get() or
ktime_get_real() depending on drm_timestamp_monotonic. No point in
having two calls into the core for CLOCK_REALTIME.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/gpu/drm/drm_irq.c