Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182518
b: refs/heads/master
c: 0c9cf2e
h: refs/heads/master
v: v3
  • Loading branch information
Anton Blanchard authored and Ingo Molnar committed Feb 8, 2010
1 parent 9974d5d commit 112e7fc
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 6d3e0907b8b239d16720d144e2675ecf10d3bc3b
refs/heads/master: 0c9cf2efd74dbc90354e2ccc7dbd6bad68ec6c4d
9 changes: 6 additions & 3 deletions trunk/include/linux/percpu_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ static inline void percpu_counter_set(struct percpu_counter *fbc, s64 amount)
fbc->count = amount;
}

#define __percpu_counter_add(fbc, amount, batch) \
percpu_counter_add(fbc, amount)

static inline void
percpu_counter_add(struct percpu_counter *fbc, s64 amount)
{
Expand All @@ -109,6 +106,12 @@ percpu_counter_add(struct percpu_counter *fbc, s64 amount)
preempt_enable();
}

static inline void
__percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch)
{
percpu_counter_add(fbc, amount);
}

static inline s64 percpu_counter_read(struct percpu_counter *fbc)
{
return fbc->count;
Expand Down

0 comments on commit 112e7fc

Please sign in to comment.