]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/percpu_counter.h
percpu_counter: Make __percpu_counter_add an inline function on UP
[net-next-2.6.git] / include / linux / percpu_counter.h
index a7684a513994725335ac078d457c6a7a02d78455..794662b2be5df175e81ad86840ede63bdf244370 100644 (file)
@@ -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)
 {
@@ -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;