diff options
author | Tejun Heo <tj@kernel.org> | 2009-03-10 08:27:48 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-03-10 08:27:48 +0100 |
commit | 6074d5b0a319fe8400ff079a3c289406ca024321 (patch) | |
tree | 465ad1ae2ba2a35ee2b67772e188f6a1f5ac189d /net/mac80211 | |
parent | percpu: make x86 addr <-> pcpu ptr conversion macros generic (diff) | |
download | linux-6074d5b0a319fe8400ff079a3c289406ca024321.tar.xz linux-6074d5b0a319fe8400ff079a3c289406ca024321.zip |
percpu: more flexibility for @dyn_size of pcpu_setup_first_chunk()
Impact: cleanup, more flexibility for first chunk init
Non-negative @dyn_size used to be allowed iff @unit_size wasn't auto.
This restriction stemmed from implementation detail and made things a
bit less intuitive. This patch allows @dyn_size to be specified
regardless of @unit_size and swaps the positions of @dyn_size and
@unit_size so that the parameter order makes more sense (static,
reserved and dyn sizes followed by enclosing unit_size).
While at it, add @unit_size >= PCPU_MIN_UNIT_SIZE sanity check.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'net/mac80211')
0 files changed, 0 insertions, 0 deletions