]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: reduce PCPU_MIN_UNIT_SIZE to 32k
authorTejun Heo <tj@kernel.org>
Fri, 3 Sep 2010 16:22:47 +0000 (18:22 +0200)
committerPekka Enberg <penberg@kernel.org>
Sat, 2 Oct 2010 07:25:47 +0000 (10:25 +0300)
commitbf1a1a1e839da9f1a88dc0580fbac001a2ace7fa
treebb3490877252f008bb12ecf0d9f4e5f795aa0cd6
parentf34878147a4e71d3ff8c8199e5464b6820d9edcd
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>
include/linux/percpu.h