diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2011-03-16 12:08:04 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-03-16 23:50:40 -0400 |
commit | 3409fc1b22e2717237f9f23112645f5d190cff4d (patch) | |
tree | fbcac12ea2edc1ab703d3058078ca490c61c2770 /drivers | |
parent | 38f1cff0863809587b5fd10ecd0c24c8b543a48c (diff) |
radeon: merge list_del()/list_add_tail() to list_move_tail()
Merge list_del() + list_add_tail() to list_move_tail().
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fence.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c index 171b0b2e3a64..9e59868d354e 100644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c | |||
@@ -60,8 +60,7 @@ int radeon_fence_emit(struct radeon_device *rdev, struct radeon_fence *fence) | |||
60 | 60 | ||
61 | trace_radeon_fence_emit(rdev->ddev, fence->seq); | 61 | trace_radeon_fence_emit(rdev->ddev, fence->seq); |
62 | fence->emited = true; | 62 | fence->emited = true; |
63 | list_del(&fence->list); | 63 | list_move_tail(&fence->list, &rdev->fence_drv.emited); |
64 | list_add_tail(&fence->list, &rdev->fence_drv.emited); | ||
65 | write_unlock_irqrestore(&rdev->fence_drv.lock, irq_flags); | 64 | write_unlock_irqrestore(&rdev->fence_drv.lock, irq_flags); |
66 | return 0; | 65 | return 0; |
67 | } | 66 | } |
@@ -121,8 +120,7 @@ static bool radeon_fence_poll_locked(struct radeon_device *rdev) | |||
121 | i = n; | 120 | i = n; |
122 | do { | 121 | do { |
123 | n = i->prev; | 122 | n = i->prev; |
124 | list_del(i); | 123 | list_move_tail(i, &rdev->fence_drv.signaled); |
125 | list_add_tail(i, &rdev->fence_drv.signaled); | ||
126 | fence = list_entry(i, struct radeon_fence, list); | 124 | fence = list_entry(i, struct radeon_fence, list); |
127 | fence->signaled = true; | 125 | fence->signaled = true; |
128 | i = n; | 126 | i = n; |