diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-02-20 08:29:08 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-02-20 08:29:08 +0100 |
commit | 313e458f81ec3852106c5a83830fe0d4f405a71a (patch) | |
tree | 682cd5b6d7dc4e0e9eccdcc7915820dd33c87a34 /net/ipv4 | |
parent | alloc_percpu: change percpu_ptr to per_cpu_ptr (diff) | |
download | linux-313e458f81ec3852106c5a83830fe0d4f405a71a.tar.xz linux-313e458f81ec3852106c5a83830fe0d4f405a71a.zip |
alloc_percpu: add align argument to __alloc_percpu.
This prepares for a real __alloc_percpu, by adding an alignment argument.
Only one place uses __alloc_percpu directly, and that's for a string.
tj: af_inet also uses __alloc_percpu(), update it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/af_inet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 743f5542d65a..3a3dad801354 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1375,10 +1375,10 @@ EXPORT_SYMBOL_GPL(snmp_fold_field); int snmp_mib_init(void *ptr[2], size_t mibsize) { BUG_ON(ptr == NULL); - ptr[0] = __alloc_percpu(mibsize); + ptr[0] = __alloc_percpu(mibsize, __alignof__(unsigned long long)); if (!ptr[0]) goto err0; - ptr[1] = __alloc_percpu(mibsize); + ptr[1] = __alloc_percpu(mibsize, __alignof__(unsigned long long)); if (!ptr[1]) goto err1; return 0; |