aboutsummaryrefslogtreecommitdiff
path: root/arch/cris
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-03-06 14:33:59 +0900
committerTejun Heo <tj@kernel.org>2009-03-06 14:33:59 +0900
commit9a4f8a878b68d5a5d9ee60908a52cf6a55e1b823 (patch)
treebe7075427a064709bf1a3d3184c7cc3dc147d6e8 /arch/cris
parentcafe8816b217b98dc3f268d3b77445da498beb4f (diff)
x86: make embedding percpu allocator return excessive free space
Impact: reduce unnecessary memory usage on certain configurations Embedding percpu allocator allocates unit_size * smp_num_possible_cpus() bytes consecutively and use it for the first chunk. However, if the static area is small, this can result in excessive prellocated free space in the first chunk due to PCPU_MIN_UNIT_SIZE restriction. This patch makes embedding percpu allocator preallocate only what's necessary as described by PERPCU_DYNAMIC_RESERVE and return the leftover to the bootmem allocator. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/cris')
0 files changed, 0 insertions, 0 deletions