drm/amd/powerplay: Use correct clock in cz_apply_state_adjust_rules
authorEric Yang <eric.yang2@amd.com>
Tue, 15 Dec 2015 19:47:02 +0000 (14:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 21:17:01 +0000 (16:17 -0500)
Signed-off-by: Eric Yang <eric.yang2@amd.com>
Reviewed-by: Eagle Yeh <eagle.yeh@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c

index 4274ba5..dfff4bd 100644 (file)
@@ -1125,8 +1125,8 @@ static int cz_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
 
        cz_hwmgr->battery_state = (PP_StateUILabel_Battery == prequest_ps->classification.ui_label);
 
-       clocks.memoryClock = hwmgr->display_config.min_core_set_clock != 0 ?
-                               hwmgr->display_config.min_core_set_clock :
+       clocks.memoryClock = hwmgr->display_config.min_mem_set_clock != 0 ?
+                               hwmgr->display_config.min_mem_set_clock :
                                cz_hwmgr->sys_info.nbp_memory_clock[1];
 
        cgs_get_active_displays_info(hwmgr->device, &info);