diff options
| author | Alex Deucher <[email protected]> | 2015-07-14 16:29:00 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2015-07-16 16:39:42 +0000 |
| commit | 58829aa67da95d03bcca7605d2556361a1785a08 (patch) | |
| tree | 469392aca37eb61a11dd29a40461541c252777d8 /drivers/gpu/drm/amd/amdgpu/cz_dpm.c | |
| parent | drm/amdgpu/cz: unforce dpm levels before forcing to low/high (diff) | |
| download | kernel-58829aa67da95d03bcca7605d2556361a1785a08.tar.gz kernel-58829aa67da95d03bcca7605d2556361a1785a08.zip | |
drm/amdgpu/cz: store the forced dpm level
So the selected forced level shows up properly in sysfs.
Reviewed-by: Jammy Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cz_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c index 8d95547f263a..cca8ee1f1570 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c @@ -1717,6 +1717,8 @@ static int cz_dpm_force_dpm_level(struct amdgpu_device *adev, break; } + adev->pm.dpm.forced_level = level; + return ret; } |
