mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02: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
|
|
@ -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 New Issue
Block a user