]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita314fa72535d17bdc2078779bb6eec06cb4978dd
treec2676c12e5058c0ac7582a5d14bacb7298728536
parent00dbd62e78e97dc9eb64870354b6489473ae547c
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