From: Daniel Vetter Date: Fri, 25 Jul 2014 21:34:03 +0000 (+0200) Subject: drm/irq: Implement a generic vblank_wait function X-Git-Tag: fixes-against-v3.18-rc2~73^2~79^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8450f51a4b39cfe0878b4aee339820b2bfff240;p=pandora-kernel.git drm/irq: Implement a generic vblank_wait function As usual in both a crtc index and a struct drm_crtc * version. The function assumes that no one drivers their display below 10Hz, and it will complain if the vblank wait takes longer than that. v2: Also check dev->max_vblank_counter since some drivers register a fake get_vblank_counter function. v3: Use drm_vblank_count instead of calling the low-level ->get_vblank_counter callback. That way we'll get the sw-cooked counter for platforms without proper vblank support and so can ditch the max_vblank_counter check again. v4: Review from Michel Dänzer: - Restore lost notes about v3: - Spelling in kerneldoc. - Inline wait_event condition. - s/vblank_wait/wait_one_vblank/ Cc: Michel Dänzer Cc: Ville Syrjälä Reviewed-by: Michel Dänzer Reviewed-by: Matt Roper Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed