aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amd_powerplay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
index 6f0ed07bb587..07dbeb225df7 100644
--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
+++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
@@ -539,15 +539,19 @@ static enum amd_pm_state_type pp_dpm_get_current_power_state(void *handle)
539 switch (state->classification.ui_label) { 539 switch (state->classification.ui_label) {
540 case PP_StateUILabel_Battery: 540 case PP_StateUILabel_Battery:
541 pm_type = POWER_STATE_TYPE_BATTERY; 541 pm_type = POWER_STATE_TYPE_BATTERY;
542 break;
542 case PP_StateUILabel_Balanced: 543 case PP_StateUILabel_Balanced:
543 pm_type = POWER_STATE_TYPE_BALANCED; 544 pm_type = POWER_STATE_TYPE_BALANCED;
545 break;
544 case PP_StateUILabel_Performance: 546 case PP_StateUILabel_Performance:
545 pm_type = POWER_STATE_TYPE_PERFORMANCE; 547 pm_type = POWER_STATE_TYPE_PERFORMANCE;
548 break;
546 default: 549 default:
547 if (state->classification.flags & PP_StateClassificationFlag_Boot) 550 if (state->classification.flags & PP_StateClassificationFlag_Boot)
548 pm_type = POWER_STATE_TYPE_INTERNAL_BOOT; 551 pm_type = POWER_STATE_TYPE_INTERNAL_BOOT;
549 else 552 else
550 pm_type = POWER_STATE_TYPE_DEFAULT; 553 pm_type = POWER_STATE_TYPE_DEFAULT;
554 break;
551 } 555 }
552 mutex_unlock(&pp_handle->pp_lock); 556 mutex_unlock(&pp_handle->pp_lock);
553 557