Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5952c75b authored by Eric Yang's avatar Eric Yang Committed by Alex Deucher
Browse files

drm/amd/powerplay: Use correct clock in cz_apply_state_adjust_rules

parent ff5e20c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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);
	cz_hwmgr->battery_state = (PP_StateUILabel_Battery == prequest_ps->classification.ui_label);


	clocks.memoryClock = hwmgr->display_config.min_core_set_clock != 0 ?
	clocks.memoryClock = hwmgr->display_config.min_mem_set_clock != 0 ?
				hwmgr->display_config.min_core_set_clock :
				hwmgr->display_config.min_mem_set_clock :
				cz_hwmgr->sys_info.nbp_memory_clock[1];
				cz_hwmgr->sys_info.nbp_memory_clock[1];


	cgs_get_active_displays_info(hwmgr->device, &info);
	cgs_get_active_displays_info(hwmgr->device, &info);