Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312176
b: refs/heads/master
c: e3f8d37
h: refs/heads/master
v: v3
  • Loading branch information
Paul E. McKenney committed Jul 2, 2012
1 parent c88c45f commit 3ef6553
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 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: 751a68b2e46fe11a42450cb55a16e8065eddec7e
refs/heads/master: e3f8d3788ed7cf55946030dc9b76e73edb111602
15 changes: 13 additions & 2 deletions trunk/kernel/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,17 @@ static void srcu_torture_synchronize(void)
synchronize_srcu(&srcu_ctl);
}

static void srcu_torture_call(struct rcu_head *head,
void (*func)(struct rcu_head *head))
{
call_srcu(&srcu_ctl, head, func);
}

static void srcu_torture_barrier(void)
{
srcu_barrier(&srcu_ctl);
}

static int srcu_torture_stats(char *page)
{
int cnt = 0;
Expand All @@ -661,8 +672,8 @@ static struct rcu_torture_ops srcu_ops = {
.completed = srcu_torture_completed,
.deferred_free = srcu_torture_deferred_free,
.sync = srcu_torture_synchronize,
.call = NULL,
.cb_barrier = NULL,
.call = srcu_torture_call,
.cb_barrier = srcu_torture_barrier,
.stats = srcu_torture_stats,
.name = "srcu"
};
Expand Down

0 comments on commit 3ef6553

Please sign in to comment.