Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363261
b: refs/heads/master
c: cebed3b
h: refs/heads/master
i:
  363259: 4404111
v: v3
  • Loading branch information
Erik Gilling authored and Greg Kroah-Hartman committed Mar 4, 2013
1 parent d14db22 commit 6ee69bb
Show file tree
Hide file tree
Showing 2 changed files with 20 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: af7582f293cdc29999d05f75b1ec835ffa43cb68
refs/heads/master: cebed3b1d7eaee7fb79e2c510a0da4296db043c8
19 changes: 19 additions & 0 deletions trunk/drivers/staging/android/sw_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,30 @@ static int sw_sync_pt_compare(struct sync_pt *a, struct sync_pt *b)
return sw_sync_cmp(pt_a->value, pt_b->value);
}

static void sw_sync_print_obj(struct seq_file *s,
struct sync_timeline *sync_timeline)
{
struct sw_sync_timeline *obj = (struct sw_sync_timeline *)sync_timeline;

seq_printf(s, "%d", obj->value);
}

static void sw_sync_print_pt(struct seq_file *s, struct sync_pt *sync_pt)
{
struct sw_sync_pt *pt = (struct sw_sync_pt *)sync_pt;
struct sw_sync_timeline *obj =
(struct sw_sync_timeline *)sync_pt->parent;

seq_printf(s, "%d / %d", pt->value, obj->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,
};


Expand Down

0 comments on commit 6ee69bb

Please sign in to comment.