x86: add embedding percpu first chunk allocator
authorTejun Heo <tj@kernel.org>
Tue, 24 Feb 2009 02:57:21 +0000 (11:57 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 24 Feb 2009 02:57:21 +0000 (11:57 +0900)
commit89c9215165ca609096e845926d9a18f1306176a4
tree9f8c5ce582425a7a82fda9d7d13c8e0cdc32f828
parent5f5d8405d1c50f5cf7e1dbfe9c9b44e2f015c8fd
x86: add embedding percpu first chunk allocator

Impact: add better first percpu allocation for !NUMA

On !NUMA, we can simply allocate contiguous memory and use it for the
first chunk without mapping it into vmalloc area.  As the memory area
is covered by the large page physical memory mapping, it allows the
dynamic perpcu allocator to not add any TLB overhead for the static
percpu area and whatever falls into the first chunk and the
implementation is very simple too.

Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/kernel/setup_percpu.c