|
@@ -31,6 +31,7 @@ struct percpu_counter {
|
|
#endif
|
|
#endif
|
|
|
|
|
|
int percpu_counter_init(struct percpu_counter *fbc, s64 amount);
|
|
int percpu_counter_init(struct percpu_counter *fbc, s64 amount);
|
|
|
|
+int percpu_counter_init_irq(struct percpu_counter *fbc, s64 amount);
|
|
void percpu_counter_destroy(struct percpu_counter *fbc);
|
|
void percpu_counter_destroy(struct percpu_counter *fbc);
|
|
void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
|
|
void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
|
|
void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch);
|
|
void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch);
|
|
@@ -84,6 +85,8 @@ static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#define percpu_counter_init_irq percpu_counter_init
|
|
|
|
+
|
|
static inline void percpu_counter_destroy(struct percpu_counter *fbc)
|
|
static inline void percpu_counter_destroy(struct percpu_counter *fbc)
|
|
{
|
|
{
|
|
}
|
|
}
|