aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index cf2e8c4e9b8b..57301f5936fa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -344,8 +344,7 @@ static u64 amdgpu_cs_get_threshold_for_moves(struct amdgpu_device *adev)
344 * submission. This can result in a debt that can stop buffer migrations 344 * submission. This can result in a debt that can stop buffer migrations
345 * temporarily. 345 * temporarily.
346 */ 346 */
347static void amdgpu_cs_report_moved_bytes(struct amdgpu_device *adev, 347void amdgpu_cs_report_moved_bytes(struct amdgpu_device *adev, u64 num_bytes)
348 u64 num_bytes)
349{ 348{
350 spin_lock(&adev->mm_stats.lock); 349 spin_lock(&adev->mm_stats.lock);
351 adev->mm_stats.accum_us -= bytes_to_us(adev, num_bytes); 350 adev->mm_stats.accum_us -= bytes_to_us(adev, num_bytes);