|
@@ -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;
|