diff options
author | Tejun Heo <tj@kernel.org> | 2010-09-09 18:00:15 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-09-09 18:00:15 +0200 |
commit | 3c9a024fde58b08745680863859d1483def64f74 (patch) | |
tree | bc89bdb3d2c1466d470d82307aa38f2926861148 /kernel/up.c | |
parent | bbddff0545878a8649c091a9dd7c43ce91516734 (diff) | |
download | op-kernel-dev-3c9a024fde58b08745680863859d1483def64f74.zip op-kernel-dev-3c9a024fde58b08745680863859d1483def64f74.tar.gz |
percpu: fix build breakage on s390 and cleanup build configuration tests
Commit bbddff05 (percpu: use percpu allocator on UP too) incorrectly
excluded pcpu_build_alloc_info() on SMP configurations which use
generic setup_per_cpu_area() like s390. The config ifdefs are
becoming confusing. Fix and clean it up by,
* Move pcpu_build_alloc_info() right on top of its two users -
pcpu_{embed|page}_first_chunk() which are already in CONFIG_SMP
block.
* Define BUILD_{EMBED|PAGE}_FIRST_CHUNK which indicate whether each
first chunk function needs to be included and use them to control
inclusion of the three functions to reduce confusion.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Sachin Sant <sachinp@in.ibm.com>
Diffstat (limited to 'kernel/up.c')
0 files changed, 0 insertions, 0 deletions