diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_pm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_pm.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index 134b19537d11..88163e043fcf 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c | |||
@@ -387,7 +387,7 @@ void radeon_pm_compute_clocks(struct radeon_device *rdev) | |||
387 | mutex_unlock(&rdev->pm.mutex); | 387 | mutex_unlock(&rdev->pm.mutex); |
388 | } | 388 | } |
389 | 389 | ||
390 | bool radeon_pm_debug_check_in_vbl(struct radeon_device *rdev, bool finish) | 390 | bool radeon_pm_in_vbl(struct radeon_device *rdev) |
391 | { | 391 | { |
392 | u32 stat_crtc = 0; | 392 | u32 stat_crtc = 0; |
393 | bool in_vbl = true; | 393 | bool in_vbl = true; |
@@ -446,6 +446,15 @@ bool radeon_pm_debug_check_in_vbl(struct radeon_device *rdev, bool finish) | |||
446 | in_vbl = false; | 446 | in_vbl = false; |
447 | } | 447 | } |
448 | } | 448 | } |
449 | |||
450 | return in_vbl; | ||
451 | } | ||
452 | |||
453 | bool radeon_pm_debug_check_in_vbl(struct radeon_device *rdev, bool finish) | ||
454 | { | ||
455 | u32 stat_crtc = 0; | ||
456 | bool in_vbl = radeon_pm_in_vbl(rdev); | ||
457 | |||
449 | if (in_vbl == false) | 458 | if (in_vbl == false) |
450 | DRM_INFO("not in vbl for pm change %08x at %s\n", stat_crtc, | 459 | DRM_INFO("not in vbl for pm change %08x at %s\n", stat_crtc, |
451 | finish ? "exit" : "entry"); | 460 | finish ? "exit" : "entry"); |