percpu: generalize first chunk allocator selection
authorTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:50 +0000 (15:00 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:50 +0000 (15:00 +0900)
commitf58dc01ba2ca9fe3ab2ba4ca43d9c8a735cf62d8
tree9eb76a0d6aa34e56f8650fe98a5ce26891a522ab
parent08fc45806103e59a37418e84719b878f9bb32540
percpu: generalize first chunk allocator selection

Now that all first chunk allocators are in mm/percpu.c, it makes sense
to make generalize percpu_alloc kernel parameter.  Define PCPU_FC_*
and set pcpu_chosen_fc using early_param() in mm/percpu.c.  Arch code
can use the set value to determine which first chunk allocator to use.

Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/kernel-parameters.txt
arch/x86/kernel/setup_percpu.c
include/linux/percpu.h
mm/percpu.c