]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sparc64: use embedding percpu first chunk allocator
authorTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:53 +0000 (15:00 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:53 +0000 (15:00 +0900)
commitbcb2107fdbecef3de55d597d23453747af81ba88
treef5d7095b80a3483f65a58d8eecdb02b06475fa3d
parente933a73f48e3b2d40cfa56d81e2646f194b5a66a
sparc64: use embedding percpu first chunk allocator

sparc64 currently allocates a large page for each cpu and partially
remap them into vmalloc area much like what lpage first chunk
allocator did.  As a 4M page is used for each cpu, this results in
very large unit size and also adds TLB pressure due to the double
mapping of pages in the first chunk.

This patch converts sparc64 to use the embedding percpu first chunk
allocator which now knows how to handle NUMA configurations.  This
simplifies the code a lot, doesn't incur any extra TLB pressure and
results in better utilization of address space.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
arch/sparc/Kconfig
arch/sparc/kernel/smp_64.c