diff options
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 77b86be8ce4f..a7ec840f596c 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -57,7 +57,7 @@ | |||
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | extern void *pcpu_base_addr; | 59 | extern void *pcpu_base_addr; |
60 | extern const int *pcpu_unit_map; | 60 | extern const unsigned long *pcpu_unit_offsets; |
61 | 61 | ||
62 | struct pcpu_group_info { | 62 | struct pcpu_group_info { |
63 | int nr_units; /* aligned # of units */ | 63 | int nr_units; /* aligned # of units */ |
@@ -106,25 +106,23 @@ extern struct pcpu_alloc_info * __init pcpu_build_alloc_info( | |||
106 | size_t atom_size, | 106 | size_t atom_size, |
107 | pcpu_fc_cpu_distance_fn_t cpu_distance_fn); | 107 | pcpu_fc_cpu_distance_fn_t cpu_distance_fn); |
108 | 108 | ||
109 | extern size_t __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, | 109 | extern int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, |
110 | void *base_addr); | 110 | void *base_addr); |
111 | 111 | ||
112 | #ifdef CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK | 112 | #ifdef CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK |
113 | extern ssize_t __init pcpu_embed_first_chunk( | 113 | extern int __init pcpu_embed_first_chunk(size_t reserved_size, |
114 | size_t reserved_size, ssize_t dyn_size); | 114 | ssize_t dyn_size); |
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | #ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK | 117 | #ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK |
118 | extern ssize_t __init pcpu_page_first_chunk( | 118 | extern int __init pcpu_page_first_chunk(size_t reserved_size, |
119 | size_t reserved_size, | ||
120 | pcpu_fc_alloc_fn_t alloc_fn, | 119 | pcpu_fc_alloc_fn_t alloc_fn, |
121 | pcpu_fc_free_fn_t free_fn, | 120 | pcpu_fc_free_fn_t free_fn, |
122 | pcpu_fc_populate_pte_fn_t populate_pte_fn); | 121 | pcpu_fc_populate_pte_fn_t populate_pte_fn); |
123 | #endif | 122 | #endif |
124 | 123 | ||
125 | #ifdef CONFIG_NEED_PER_CPU_LPAGE_FIRST_CHUNK | 124 | #ifdef CONFIG_NEED_PER_CPU_LPAGE_FIRST_CHUNK |
126 | extern ssize_t __init pcpu_lpage_first_chunk( | 125 | extern int __init pcpu_lpage_first_chunk(const struct pcpu_alloc_info *ai, |
127 | const struct pcpu_alloc_info *ai, | ||
128 | pcpu_fc_alloc_fn_t alloc_fn, | 126 | pcpu_fc_alloc_fn_t alloc_fn, |
129 | pcpu_fc_free_fn_t free_fn, | 127 | pcpu_fc_free_fn_t free_fn, |
130 | pcpu_fc_map_fn_t map_fn); | 128 | pcpu_fc_map_fn_t map_fn); |