diff options
author | Tejun Heo <tj@kernel.org> | 2009-07-04 03:10:59 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-07-04 03:10:59 +0400 |
commit | 8c4bfc6e8801616ab2e01c38140b2159b388d2ff (patch) | |
tree | e29e8bbfae362362554b870371a6187b41f92d82 /fs/binfmt_elf.c | |
parent | 8f05a6a65d944f2fed4eb384fb58aa8c8e5a9bab (diff) | |
download | linux-8c4bfc6e8801616ab2e01c38140b2159b388d2ff.tar.xz |
x86,percpu: generalize lpage first chunk allocator
Generalize and move x86 setup_pcpu_lpage() into
pcpu_lpage_first_chunk(). setup_pcpu_lpage() now is a simple wrapper
around the generalized version. Other than taking size parameters and
using arch supplied callbacks to allocate/free/map memory,
pcpu_lpage_first_chunk() is identical to the original implementation.
This simplifies arch code and will help converting more archs to
dynamic percpu allocator.
While at it, factor out pcpu_calc_fc_sizes() which is common to
pcpu_embed_first_chunk() and pcpu_lpage_first_chunk().
[ Impact: code reorganization and generalization ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions