percpu: reduce PCPU_MIN_UNIT_SIZE to 32k
authorTejun Heo <tj@kernel.org>
Fri, 3 Sep 2010 16:22:47 +0000 (18:22 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 8 Sep 2010 09:11:12 +0000 (11:11 +0200)
commit6abad5acac09921f4944af77d3860f82d49f528d
treea4c83ef8f2cbb3b345282305a9ba82f06706ec04
parent4f8b02b4e5c6896e073bed736136d420bd44b627
percpu: reduce PCPU_MIN_UNIT_SIZE to 32k

In preparation of enabling percpu allocator for UP, reduce
PCPU_MIN_UNIT_SIZE to 32k.  On UP, the first chunk doesn't have to
include static percpu variables and chunk size can be smaller which is
important as UP percpu allocator will use contiguous kernel memory to
populate chunks.

PCPU_MIN_UNIT_SIZE also determines the maximum supported allocation
size but 32k should still be enough.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Lameter <cl@linux.com>
include/linux/percpu.h