]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip register reads in i915_get_crtc_scanoutpos()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 23 Sep 2013 11:48:50 +0000 (14:48 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Oct 2013 15:11:11 +0000 (17:11 +0200)
commit5c8c0a7a8098405777a5315ad26c3b638d889606
tree5dea4727117c903c4203562eeb8b4121d1cd205b
parent88814254a728c1d9edce7a570b9ecf87808fafb3
drm/i915: Skip register reads in i915_get_crtc_scanoutpos()

We have all the information we need in the mode structure, so going and
reading it from the hardware is pointless, and slower.

We never populated ->get_vblank_timestamp() in the UMS case, and as that
is the only way we'd ever call ->get_scanout_position(), we can
completely ignore UMS in i915_get_crtc_scanoutpos().

Also reorganize intel_irq_init() a bit to clarify the KMS vs. UMS
situation.

v2: Drop UMS code

Cc: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: mario.kleiner.de@gmail.com
Tested-by: mario.kleiner.de@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c