Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363263
b: refs/heads/master
c: b1489c2
h: refs/heads/master
i:
  363261: 6ee69bb
  363259: 4404111
  363255: 6872bca
  363247: f76142a
  363231: 818bae2
  363199: 23963c9
  363135: 184fdc8
  363007: 3ef5e26
v: v3
  • Loading branch information
Erik Gilling authored and Greg Kroah-Hartman committed Mar 4, 2013
1 parent 27e7ed9 commit 2f0623b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79ba1525a91e99cdd7a3b6a57c7537d13ac0ac19
refs/heads/master: b1489c2704b3db72ff37ecabe054926176e88e50
14 changes: 14 additions & 0 deletions trunk/drivers/staging/android/sw_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,27 @@ static void sw_sync_print_pt(struct seq_file *s, struct sync_pt *sync_pt)
seq_printf(s, "%d / %d", pt->value, obj->value);
}

static int sw_sync_fill_driver_data(struct sync_pt *sync_pt,
void *data, int size)
{
struct sw_sync_pt *pt = (struct sw_sync_pt *)sync_pt;

if (size < sizeof(pt->value))
return -ENOMEM;

memcpy(data, &pt->value, sizeof(pt->value));

return sizeof(pt->value);
}

struct sync_timeline_ops sw_sync_timeline_ops = {
.driver_name = "sw_sync",
.dup = sw_sync_pt_dup,
.has_signaled = sw_sync_pt_has_signaled,
.compare = sw_sync_pt_compare,
.print_obj = sw_sync_print_obj,
.print_pt = sw_sync_print_pt,
.fill_driver_data = sw_sync_fill_driver_data,
};


Expand Down

0 comments on commit 2f0623b

Please sign in to comment.