From: Daniel Vetter Date: Wed, 10 Sep 2014 15:36:09 +0000 (+0200) Subject: drm: Only update final vblank count when precise ts is available X-Git-Tag: fixes-against-v3.18-rc2~73^2~39^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=855d30b402b91f09c90f65c34ec91debaae8cf3a;p=pandora-kernel.git drm: Only update final vblank count when precise ts is available Drivers without a hardware vblank counter simply can't account for the vblanks that happened while the vblank interrupt was off. To check this grab a vblank timestamp and if the result is dubious follow the normal save-and-disable logic. Drivers should prevent this by setting vblank_disable_allowed = false, but since running vblank interrupts constantly is not good for power consumption most drivers lie. Testing for precise vblank timestamps is the next best thing we can check for. Suggested-by: Mario Kleiner Cc: Mario Kleiner Cc: Matt Roper Cc: Ville Syrjälä Reviewed-by: Mario Kleiner Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed