]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Use I915_READ_FW in i915_get_vblank_counter()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Mar 2017 15:44:30 +0000 (17:44 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Mar 2017 19:14:47 +0000 (21:14 +0200)
commit694e409daa90f2e21a97e43121c943a84e843bf9
treed6c2052ec06769cc613a1741040de3911c4f871d
parentc750bdd3e7e204cc88b32806c3864487a03cd84b
drm/i915: Use I915_READ_FW in i915_get_vblank_counter()

Optimize the multi-register read in i915_get_vblank_counter() a little
bit by grabbing the uncore lock manually and using I915_READ_FW().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170309154434.29303-2-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/i915_irq.c