PERCPU : __percpu_alloc_mask() can dynamically size percpu_data storage
commitb3242151906372f30f57feaa43b4cac96a23edb1
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 6 Feb 2008 09:37:01 +0000 (6 01:37 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:04 +0000 (6 10:41 -0800)
treed258219aa13dfeae8d9fb5db1fd220a0664a680d
parente7ca2d41a029577a8cff453d1445951d4f96bfd8
PERCPU : __percpu_alloc_mask() can dynamically size percpu_data storage

Instead of allocating a fix sized array of NR_CPUS pointers for percpu_data,
we can use nr_cpu_ids, which is generally < NR_CPUS.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/percpu.h
mm/allocpercpu.c