Change-Id: Ie745bc10d933462863b4295eb26cc2af08f06547 Signed-off-by: Rex Zhu <Rex.Zhu at amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c index f3f303e..463905b 100644 --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c @@ -396,7 +396,7 @@ static int pp_dpm_force_performance_level(void *handle, hwmgr->request_dpm_level = level; hwmgr_handle_task(pp_handle, AMD_PP_TASK_READJUST_POWER_STATE, NULL, NULL); ret = hwmgr->hwmgr_func->force_dpm_level(hwmgr, level); - if (ret) + if (!ret) hwmgr->dpm_level = hwmgr->request_dpm_level; mutex_unlock(&pp_handle->pp_lock); -- 1.9.1