drm: Limit the number of .get_vblank_counter() retries
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Sep 2015 19:43:48 +0000 (22:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Sep 2015 18:14:22 +0000 (20:14 +0200)
commitfacfb062e8c958f321c366c6ea3d98db899a4c6e
treed2c7cd8b72d88ac31325e228fc0bdc8335023689
parenta6e610dcce3c8cbd5217527a089c8811d4412184
drm: Limit the number of .get_vblank_counter() retries

Pontential infinite loops in the vblank code are a bad idea. Add some
limits.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_irq.c