diff options
author | Tejun Heo <tj@kernel.org> | 2014-09-08 09:51:30 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-08 09:51:30 +0900 |
commit | 20ae00792c6f1f18fc4fc5965445a145df92827e (patch) | |
tree | 3ca91fac24ac0a672c105e766c4d5020e53be876 /include/linux/flex_proportions.h | |
parent | 908c7f1949cb7cc6e92ba8f18f2998e87e265b8e (diff) | |
download | blackbird-op-linux-20ae00792c6f1f18fc4fc5965445a145df92827e.tar.gz blackbird-op-linux-20ae00792c6f1f18fc4fc5965445a145df92827e.zip |
proportions: add @gfp to init functions
Percpu allocator now supports allocation mask. Add @gfp to
[flex_]proportions init functions so that !GFP_KERNEL allocation masks
can be used with them too.
This patch doesn't make any functional difference.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'include/linux/flex_proportions.h')
-rw-r--r-- | include/linux/flex_proportions.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/flex_proportions.h b/include/linux/flex_proportions.h index 4ebc49fae391..0d348e011a6e 100644 --- a/include/linux/flex_proportions.h +++ b/include/linux/flex_proportions.h @@ -10,6 +10,7 @@ #include <linux/percpu_counter.h> #include <linux/spinlock.h> #include <linux/seqlock.h> +#include <linux/gfp.h> /* * When maximum proportion of some event type is specified, this is the @@ -32,7 +33,7 @@ struct fprop_global { seqcount_t sequence; }; -int fprop_global_init(struct fprop_global *p); +int fprop_global_init(struct fprop_global *p, gfp_t gfp); void fprop_global_destroy(struct fprop_global *p); bool fprop_new_period(struct fprop_global *p, int periods); @@ -79,7 +80,7 @@ struct fprop_local_percpu { raw_spinlock_t lock; /* Protect period and numerator */ }; -int fprop_local_init_percpu(struct fprop_local_percpu *pl); +int fprop_local_init_percpu(struct fprop_local_percpu *pl, gfp_t gfp); void fprop_local_destroy_percpu(struct fprop_local_percpu *pl); void __fprop_inc_percpu(struct fprop_global *p, struct fprop_local_percpu *pl); void __fprop_inc_percpu_max(struct fprop_global *p, struct fprop_local_percpu *pl, |