drm/i915: factor out reset_vblank_counter
authorImre Deak <imre.deak@intel.com>
Tue, 4 Mar 2014 17:23:03 +0000 (19:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 21:36:55 +0000 (22:36 +0100)
commitdd7c0b66e5414c54a9af8f100cc904240bab5102
tree3a3221ba4373211a8b6640b910abc2f2cbff3a0c
parenta30180a5a349709821725266caaa69ec9871efbe
drm/i915: factor out reset_vblank_counter

We need to do the same for other platforms in upcoming patches.

v2:
- s/p/pipe (Ville)
- Call the new helper with the vbl_lock already held. The part it
  protects is short, so releasing it between pipes only makes proving
  correctness more difficult.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Resolve conflict with Damien's s/p/pipe/ change.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c