diff options
author | Tejun Heo <tj@kernel.org> | 2009-07-04 08:10:58 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-07-04 08:10:58 +0900 |
commit | 788e5abc5441e9046dd91c995c6f1f75bbd144bf (patch) | |
tree | 5ad49583625c81000759307f4928179f9aa9ca41 /arch/x86/kernel/setup_percpu.c | |
parent | 79ba6ac825fac187894e236c9df1ba5fcbf53fd3 (diff) | |
download | linux-788e5abc5441e9046dd91c995c6f1f75bbd144bf.tar.gz linux-788e5abc5441e9046dd91c995c6f1f75bbd144bf.tar.bz2 linux-788e5abc5441e9046dd91c995c6f1f75bbd144bf.zip |
percpu: drop @unit_size from embed first chunk allocator
The only extra feature @unit_size provides is making dead space at the
end of the first chunk which doesn't have any valid usecase. Drop the
parameter. This will increase consistency with generalized 4k
allocator.
James Bottomley spotted missing conversion for the default
setup_per_cpu_areas() which caused build breakage on all arcsh which
use it.
[ Impact: drop unused code path ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
-rw-r--r-- | arch/x86/kernel/setup_percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index 29a3eef7cf4a..14728206fb52 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c @@ -342,7 +342,7 @@ static ssize_t __init setup_pcpu_embed(size_t static_size, bool chosen) return -EINVAL; return pcpu_embed_first_chunk(static_size, PERCPU_FIRST_CHUNK_RESERVE, - reserve - PERCPU_FIRST_CHUNK_RESERVE, -1); + reserve - PERCPU_FIRST_CHUNK_RESERVE); } /* |