drm/radeon: only apply bapm changes for AC power on ARUBA

Newer asics shouldn't need any manual adjustment.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher 2014-06-18 14:23:46 -04:00
parent 9368931db8
commit 9668295657
1 changed files with 4 additions and 2 deletions

View File

@ -73,8 +73,10 @@ void radeon_pm_acpi_event_handler(struct radeon_device *rdev)
rdev->pm.dpm.ac_power = true; rdev->pm.dpm.ac_power = true;
else else
rdev->pm.dpm.ac_power = false; rdev->pm.dpm.ac_power = false;
if (rdev->asic->dpm.enable_bapm) if (rdev->family == CHIP_ARUBA) {
radeon_dpm_enable_bapm(rdev, rdev->pm.dpm.ac_power); if (rdev->asic->dpm.enable_bapm)
radeon_dpm_enable_bapm(rdev, rdev->pm.dpm.ac_power);
}
mutex_unlock(&rdev->pm.mutex); mutex_unlock(&rdev->pm.mutex);
} else if (rdev->pm.pm_method == PM_METHOD_PROFILE) { } else if (rdev->pm.pm_method == PM_METHOD_PROFILE) {
if (rdev->pm.profile == PM_PROFILE_AUTO) { if (rdev->pm.profile == PM_PROFILE_AUTO) {