OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af18b0f
)
amdgpu/vce3: Simplify vce_v3_0_process_interrupt()
author
Tom St Denis
<tom.stdenis@amd.com>
Tue, 15 Dec 2015 15:42:39 +0000
(10:42 -0500)
committer
Alex Deucher
<alexander.deucher@amd.com>
Mon, 4 Jan 2016 22:20:33 +0000
(17:20 -0500)
Fold two cases into one for a LOC reduction.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index
d50db76
..
d3e7ba6
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@
-663,10
+663,8
@@
static int vce_v3_0_process_interrupt(struct amdgpu_device *adev,
switch (entry->src_data) {
case 0:
- amdgpu_fence_process(&adev->vce.ring[0]);
- break;
case 1:
- amdgpu_fence_process(&adev->vce.ring[
1
]);
+ amdgpu_fence_process(&adev->vce.ring[
entry->src_data
]);
break;
default:
DRM_ERROR("Unhandled interrupt: %d %d\n",