diff options
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index d385dbcf190b..570fb18de2ba 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -78,6 +78,14 @@ typedef void (*pcpu_fc_populate_pte_fn_t)(unsigned long addr); | |||
78 | typedef int (pcpu_fc_cpu_distance_fn_t)(unsigned int from, unsigned int to); | 78 | typedef int (pcpu_fc_cpu_distance_fn_t)(unsigned int from, unsigned int to); |
79 | typedef void (*pcpu_fc_map_fn_t)(void *ptr, size_t size, void *addr); | 79 | typedef void (*pcpu_fc_map_fn_t)(void *ptr, size_t size, void *addr); |
80 | 80 | ||
81 | #ifdef CONFIG_NEED_PER_CPU_LPAGE_FIRST_CHUNK | ||
82 | extern int __init pcpu_lpage_build_unit_map( | ||
83 | size_t reserved_size, ssize_t *dyn_sizep, | ||
84 | size_t *unit_sizep, size_t lpage_size, | ||
85 | int *unit_map, | ||
86 | pcpu_fc_cpu_distance_fn_t cpu_distance_fn); | ||
87 | #endif | ||
88 | |||
81 | extern size_t __init pcpu_setup_first_chunk( | 89 | extern size_t __init pcpu_setup_first_chunk( |
82 | size_t static_size, size_t reserved_size, | 90 | size_t static_size, size_t reserved_size, |
83 | size_t dyn_size, size_t unit_size, | 91 | size_t dyn_size, size_t unit_size, |
@@ -97,12 +105,6 @@ extern ssize_t __init pcpu_page_first_chunk( | |||
97 | #endif | 105 | #endif |
98 | 106 | ||
99 | #ifdef CONFIG_NEED_PER_CPU_LPAGE_FIRST_CHUNK | 107 | #ifdef CONFIG_NEED_PER_CPU_LPAGE_FIRST_CHUNK |
100 | extern int __init pcpu_lpage_build_unit_map( | ||
101 | size_t reserved_size, ssize_t *dyn_sizep, | ||
102 | size_t *unit_sizep, size_t lpage_size, | ||
103 | int *unit_map, | ||
104 | pcpu_fc_cpu_distance_fn_t cpu_distance_fn); | ||
105 | |||
106 | extern ssize_t __init pcpu_lpage_first_chunk( | 108 | extern ssize_t __init pcpu_lpage_first_chunk( |
107 | size_t reserved_size, size_t dyn_size, | 109 | size_t reserved_size, size_t dyn_size, |
108 | size_t unit_size, size_t lpage_size, | 110 | size_t unit_size, size_t lpage_size, |