diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c index 345305235349..cc97eee93226 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | |||
@@ -33,7 +33,7 @@ static int amdgpu_benchmark_do_move(struct amdgpu_device *adev, unsigned size, | |||
33 | { | 33 | { |
34 | unsigned long start_jiffies; | 34 | unsigned long start_jiffies; |
35 | unsigned long end_jiffies; | 35 | unsigned long end_jiffies; |
36 | struct fence *fence = NULL; | 36 | struct dma_fence *fence = NULL; |
37 | int i, r; | 37 | int i, r; |
38 | 38 | ||
39 | start_jiffies = jiffies; | 39 | start_jiffies = jiffies; |
@@ -43,17 +43,17 @@ static int amdgpu_benchmark_do_move(struct amdgpu_device *adev, unsigned size, | |||
43 | false); | 43 | false); |
44 | if (r) | 44 | if (r) |
45 | goto exit_do_move; | 45 | goto exit_do_move; |
46 | r = fence_wait(fence, false); | 46 | r = dma_fence_wait(fence, false); |
47 | if (r) | 47 | if (r) |
48 | goto exit_do_move; | 48 | goto exit_do_move; |
49 | fence_put(fence); | 49 | dma_fence_put(fence); |
50 | } | 50 | } |
51 | end_jiffies = jiffies; | 51 | end_jiffies = jiffies; |
52 | r = jiffies_to_msecs(end_jiffies - start_jiffies); | 52 | r = jiffies_to_msecs(end_jiffies - start_jiffies); |
53 | 53 | ||
54 | exit_do_move: | 54 | exit_do_move: |
55 | if (fence) | 55 | if (fence) |
56 | fence_put(fence); | 56 | dma_fence_put(fence); |
57 | return r; | 57 | return r; |
58 | } | 58 | } |
59 | 59 | ||