diff options
author | Tejun Heo <tj@kernel.org> | 2009-02-24 11:57:21 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-02-24 11:57:21 +0900 |
commit | d9b55eeb1d55ef2dc5a4fdbff9604c2c68cb5649 (patch) | |
tree | 1f81884066512810be81731a76fb5e041ac62c22 /arch/x86/kernel/setup_percpu.c | |
parent | 458a3e644c3327be529393982e24277eda8f1ac7 (diff) | |
download | blackbird-op-linux-d9b55eeb1d55ef2dc5a4fdbff9604c2c68cb5649.tar.gz blackbird-op-linux-d9b55eeb1d55ef2dc5a4fdbff9604c2c68cb5649.zip |
percpu: remove unit_size power-of-2 restriction
Impact: allow unit_size to be arbitrary multiple of PAGE_SIZE
In dynamic percpu allocator, there is no reason the unit size should
be power of two. Remove the restriction.
As non-power-of-two unit size means that empty chunks fall into the
same slot index as lightly occupied chunks which is bad for reclaming.
Reserve an extra slot for empty chunks.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
0 files changed, 0 insertions, 0 deletions