mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
drm/amdgpu: fix bug return invalid value to sysfs.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c79b55618a
commit
8e7afd34fd
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ static ssize_t amdgpu_set_dpm_forced_performance_level(struct device *dev,
|
|||
}
|
||||
|
||||
if (current_level == level)
|
||||
return 0;
|
||||
return count;
|
||||
|
||||
if (level == AMD_DPM_FORCED_LEVEL_PROFILING)
|
||||
amdgpu_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_GFX,
|
||||
|
|
Loading…
Reference in a new issue