aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-08-14 02:00:50 -0400
committerTejun Heo <tj@kernel.org>2009-08-14 02:00:50 -0400
commit9a7737691e90d3cce0e5248f91826c50e5aa3fcf (patch)
treedbe43cb2d2a19539ca3fb58c52e4cbd68b51d24b /include/linux/percpu.h
parentf58dc01ba2ca9fe3ab2ba4ca43d9c8a735cf62d8 (diff)
percpu: drop @static_size from first chunk allocators
First chunk allocators assume percpu areas have been linked using one of PERCPU_*() macros and depend on __per_cpu_load symbol defined by those macros, so there isn't much point in passing in static area size explicitly when it can be easily calculated from __per_cpu_start and __per_cpu_end. Drop @static_size from all percpu first chunk allocators and helpers. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r--include/linux/percpu.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index 9be05cbe5ee0..be2fc8fb9b6f 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -84,13 +84,12 @@ extern size_t __init pcpu_setup_first_chunk(
84 84
85#ifdef CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK 85#ifdef CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK
86extern ssize_t __init pcpu_embed_first_chunk( 86extern ssize_t __init pcpu_embed_first_chunk(
87 size_t static_size, size_t reserved_size, 87 size_t reserved_size, ssize_t dyn_size);
88 ssize_t dyn_size);
89#endif 88#endif
90 89
91#ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK 90#ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK
92extern ssize_t __init pcpu_page_first_chunk( 91extern ssize_t __init pcpu_page_first_chunk(
93 size_t static_size, size_t reserved_size, 92 size_t reserved_size,
94 pcpu_fc_alloc_fn_t alloc_fn, 93 pcpu_fc_alloc_fn_t alloc_fn,
95 pcpu_fc_free_fn_t free_fn, 94 pcpu_fc_free_fn_t free_fn,
96 pcpu_fc_populate_pte_fn_t populate_pte_fn); 95 pcpu_fc_populate_pte_fn_t populate_pte_fn);
@@ -98,16 +97,15 @@ extern ssize_t __init pcpu_page_first_chunk(
98 97
99#ifdef CONFIG_NEED_PER_CPU_LPAGE_FIRST_CHUNK 98#ifdef CONFIG_NEED_PER_CPU_LPAGE_FIRST_CHUNK
100extern int __init pcpu_lpage_build_unit_map( 99extern int __init pcpu_lpage_build_unit_map(
101 size_t static_size, size_t reserved_size, 100 size_t reserved_size, ssize_t *dyn_sizep,
102 ssize_t *dyn_sizep, size_t *unit_sizep, 101 size_t *unit_sizep, size_t lpage_size,
103 size_t lpage_size, int *unit_map, 102 int *unit_map,
104 pcpu_fc_cpu_distance_fn_t cpu_distance_fn); 103 pcpu_fc_cpu_distance_fn_t cpu_distance_fn);
105 104
106extern ssize_t __init pcpu_lpage_first_chunk( 105extern ssize_t __init pcpu_lpage_first_chunk(
107 size_t static_size, size_t reserved_size, 106 size_t reserved_size, size_t dyn_size,
108 size_t dyn_size, size_t unit_size, 107 size_t unit_size, size_t lpage_size,
109 size_t lpage_size, const int *unit_map, 108 const int *unit_map, int nr_units,
110 int nr_units,
111 pcpu_fc_alloc_fn_t alloc_fn, 109 pcpu_fc_alloc_fn_t alloc_fn,
112 pcpu_fc_free_fn_t free_fn, 110 pcpu_fc_free_fn_t free_fn,
113 pcpu_fc_map_fn_t map_fn); 111 pcpu_fc_map_fn_t map_fn);