]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Simplify the math in drm_calc_timestamping_constants()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 26 Oct 2013 14:11:01 +0000 (17:11 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jan 2014 09:06:01 +0000 (11:06 +0200)
commit7ec7ce88febbed3b73f94f2294936310c335fd56
tree57c09a365ea2b583834c2415e1faadd1083ad440
parentf340f850d75b9085a3ee7f0ffed9ed19c181b6ee
drm: Simplify the math in drm_calc_timestamping_constants()

drm_calc_timestamping_constants() makes the math more complex
than necessary.
- multipying the dotclock by 1000 is pointless, just makes all the
  numbers bigger
- div64_u64() is also pointless, div_u64 is enough
- pixeldur_ns doesn't need any 64bit math

Reviewed-by: mario.kleiner.de@gmail.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/drm_irq.c