diff options
author | Tejun Heo <tj@kernel.org> | 2009-07-03 19:10:59 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-07-03 19:10:59 -0400 |
commit | 38a6be525460f52ac6f2de1c3f73c5615a8853cd (patch) | |
tree | 3427f05ecb70eb50614bdc23de689a94e044db37 /include/linux/percpu.h | |
parent | 8c4bfc6e8801616ab2e01c38140b2159b388d2ff (diff) |
percpu: simplify pcpu_setup_first_chunk()
Now that all first chunk allocator helpers allocate and map the first
chunk themselves, there's no need to have optional default alloc/map
in pcpu_setup_first_chunk(). Drop @populate_pte_fn and only leave
@dyn_size optional and make all other params mandatory.
This makes it much easier to follow what pcpu_setup_first_chunk() is
doing and what actual differences tweaking each parameter results in.
[ Impact: drop unused code path ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 9f6bfd7d4b92..ec64357e1762 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -66,9 +66,8 @@ typedef void (*pcpu_fc_map_fn_t)(void *ptr, size_t size, void *addr); | |||
66 | 66 | ||
67 | extern size_t __init pcpu_setup_first_chunk(pcpu_get_page_fn_t get_page_fn, | 67 | extern size_t __init pcpu_setup_first_chunk(pcpu_get_page_fn_t get_page_fn, |
68 | size_t static_size, size_t reserved_size, | 68 | size_t static_size, size_t reserved_size, |
69 | ssize_t dyn_size, ssize_t unit_size, | 69 | ssize_t dyn_size, size_t unit_size, |
70 | void *base_addr, | 70 | void *base_addr); |
71 | pcpu_fc_populate_pte_fn_t populate_pte_fn); | ||
72 | 71 | ||
73 | extern ssize_t __init pcpu_embed_first_chunk( | 72 | extern ssize_t __init pcpu_embed_first_chunk( |
74 | size_t static_size, size_t reserved_size, | 73 | size_t static_size, size_t reserved_size, |