Commit Graph

2 Commits (02c1df199c990cd21c09a4dffaa06d4e0b7bf2bf)

Author SHA1 Message Date
H. Peter Anvin e8fc96ed36 dyn_array: don't break compiling for !CONFIG_SMP
Impact: build failure on uniprocessor

When compiling for !CONFIG_SMP, per_cpu_alloc_dyn_array() would fail
to compile, since it uses per_cpu_offset, which is not defined for
uniprocessor builds.

Hence, do not compile per_cpu_alloc_dyn_array() for !CONFIG_SMP.
Attempting to call this function in a uniprocessor configuration would
be simply wrong in the first place.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-16 16:53:05 +02:00
Yinghai Lu e7f5ed8d6e dyn_array: split dyn_array functions from init/main.c
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-16 16:52:58 +02:00