diff options
Diffstat (limited to 'include/linux/percpu_counter.h')
-rw-r--r-- | include/linux/percpu_counter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h index f7ecd38d7e9c..9007ccdfc112 100644 --- a/include/linux/percpu_counter.h +++ b/include/linux/percpu_counter.h | |||
@@ -31,6 +31,7 @@ struct percpu_counter { | |||
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | int percpu_counter_init(struct percpu_counter *fbc, s64 amount); | 33 | int percpu_counter_init(struct percpu_counter *fbc, s64 amount); |
34 | int percpu_counter_init_irq(struct percpu_counter *fbc, s64 amount); | ||
34 | void percpu_counter_destroy(struct percpu_counter *fbc); | 35 | void percpu_counter_destroy(struct percpu_counter *fbc); |
35 | void percpu_counter_set(struct percpu_counter *fbc, s64 amount); | 36 | void percpu_counter_set(struct percpu_counter *fbc, s64 amount); |
36 | void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch); | 37 | 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) | |||
84 | return 0; | 85 | return 0; |
85 | } | 86 | } |
86 | 87 | ||
88 | #define percpu_counter_init_irq percpu_counter_init | ||
89 | |||
87 | static inline void percpu_counter_destroy(struct percpu_counter *fbc) | 90 | static inline void percpu_counter_destroy(struct percpu_counter *fbc) |
88 | { | 91 | { |
89 | } | 92 | } |