浏览代码

drm/amdgpu/cz: store the forced dpm level

So the selected forced level shows up properly in sysfs.

Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Alex Deucher 10 年之前
父节点
当前提交
58829aa67d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/gpu/drm/amd/amdgpu/cz_dpm.c

+ 2 - 0
drivers/gpu/drm/amd/amdgpu/cz_dpm.c

@@ -1717,6 +1717,8 @@ static int cz_dpm_force_dpm_level(struct amdgpu_device *adev,
 		break;
 		break;
 	}
 	}
 
 
+	adev->pm.dpm.forced_level = level;
+
 	return ret;
 	return ret;
 }
 }