Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363284
b: refs/heads/master
c: 713648f
h: refs/heads/master
v: v3
  • Loading branch information
Ørjan Eide authored and Greg Kroah-Hartman committed Mar 4, 2013
1 parent 6fb8cc6 commit a2af804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b699a644f82110e8e5a0f9b45ee1d3a3cd3e4586
refs/heads/master: 713648f0f137e149a1acade3278b621728291f37
10 changes: 7 additions & 3 deletions trunk/drivers/staging/android/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ static int sync_fence_copy_pts(struct sync_fence *dst, struct sync_fence *src)

new_pt->fence = dst;
list_add(&new_pt->pt_list, &dst->pt_list_head);
sync_pt_activate(new_pt);
}

return 0;
Expand Down Expand Up @@ -357,7 +356,6 @@ static int sync_fence_merge_pts(struct sync_fence *dst, struct sync_fence *src)
new_pt->fence = dst;
list_replace(&dst_pt->pt_list,
&new_pt->pt_list);
sync_pt_activate(new_pt);
sync_pt_free(dst_pt);
}
collapsed = true;
Expand All @@ -373,7 +371,6 @@ static int sync_fence_merge_pts(struct sync_fence *dst, struct sync_fence *src)

new_pt->fence = dst;
list_add(&new_pt->pt_list, &dst->pt_list_head);
sync_pt_activate(new_pt);
}
}

Expand Down Expand Up @@ -454,6 +451,7 @@ struct sync_fence *sync_fence_merge(const char *name,
struct sync_fence *a, struct sync_fence *b)
{
struct sync_fence *fence;
struct list_head *pos;
int err;

fence = sync_fence_alloc(name);
Expand All @@ -468,6 +466,12 @@ struct sync_fence *sync_fence_merge(const char *name,
if (err < 0)
goto err;

list_for_each(pos, &fence->pt_list_head) {
struct sync_pt *pt =
container_of(pos, struct sync_pt, pt_list);
sync_pt_activate(pt);
}

/*
* signal the fence in case one of it's pts were activated before
* they were activated
Expand Down

0 comments on commit a2af804

Please sign in to comment.