From: Mario Kleiner Date: Tue, 5 Oct 2010 23:57:37 +0000 (-0400) Subject: drm/radeon: Modify radeon_pm_in_vbl to use radeon_get_crtc_scanoutpos() X-Git-Tag: v2.6.37-rc1~92^2~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75fa0b08e50cb72715b58321e8259c47adfe4c6f;p=pandora-kernel.git drm/radeon: Modify radeon_pm_in_vbl to use radeon_get_crtc_scanoutpos() radeon_pm_in_vbl() didn't report in vblank status accurately. Make it a wrapper around radeon_get_crtc_scanoutpos() which corrects for biases, so it reports accurately. radeon_pm_in_vbl() will only report in_vbl if all active crtc's are currently inside vblank. agd5f: use rdev->num_crtc rather than hardcoding the crtc count Signed-off-by: Mario Kleiner Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie --- Reading git-diff-tree failed