diff options
author | Tejun Heo <tj@kernel.org> | 2009-03-10 16:27:48 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-03-10 16:27:48 +0900 |
commit | 66c3a75772247c31feabefb724e082220a1ab060 (patch) | |
tree | 5e61a0e44c82474729e81007edc2093d37fffe95 /include/linux/percpu.h | |
parent | 6074d5b0a319fe8400ff079a3c289406ca024321 (diff) | |
download | kernel_samsung_espresso10-66c3a75772247c31feabefb724e082220a1ab060.zip kernel_samsung_espresso10-66c3a75772247c31feabefb724e082220a1ab060.tar.gz kernel_samsung_espresso10-66c3a75772247c31feabefb724e082220a1ab060.tar.bz2 |
percpu: generalize embedding first chunk setup helper
Impact: code reorganization
Separate out embedding first chunk setup helper from x86 embedding
first chunk allocator and put it in mm/percpu.c. This will be used by
the default percpu first chunk allocator and possibly by other archs.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index fb455dc..ee5615d 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -111,6 +111,10 @@ extern size_t __init pcpu_setup_first_chunk(pcpu_get_page_fn_t get_page_fn, void *base_addr, pcpu_populate_pte_fn_t populate_pte_fn); +extern ssize_t __init pcpu_embed_first_chunk( + size_t static_size, size_t reserved_size, + ssize_t dyn_size, ssize_t unit_size); + /* * Use this to get to a cpu's version of the per-cpu object * dynamically allocated. Non-atomic access to the current CPU's |