提交 538333f0 编写于 作者: F Flora Cui 提交者: Alex Deucher

drm/amd/powerplay: add default clockgating handling

This is to workaround regression introduced in
46c34bcb6a15dd85329a39a5e72c62108626acdc. It should be reverted with a
final fix.
Signed-off-by: NFlora Cui <Flora.Cui@amd.com>
Reviewed-by: NRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 62a86fc2
......@@ -188,10 +188,12 @@ static int pp_set_clockgating_state(void *handle,
hwmgr = ((struct pp_instance *)handle)->hwmgr;
if (hwmgr == NULL || hwmgr->hwmgr_func == NULL ||
hwmgr->hwmgr_func->update_clock_gatings == NULL)
if (hwmgr == NULL || hwmgr->hwmgr_func == NULL)
return -EINVAL;
if (hwmgr->hwmgr_func->update_clock_gatings == NULL)
return 0;
if (state == AMD_CG_STATE_UNGATE)
pp_state = 0;
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册