From: Ville Syrjälä Date: Mon, 23 Sep 2013 11:48:50 +0000 (+0300) Subject: drm/i915: Skip register reads in i915_get_crtc_scanoutpos() X-Git-Tag: v3.13-rc1~76^2~68^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2baf4b7097cb66e7ee3c2fa0f585d386dab6300;p=pandora-kernel.git 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 Signed-off-by: Ville Syrjälä Reviewed-by: mario.kleiner.de@gmail.com Tested-by: mario.kleiner.de@gmail.com Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed