diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2006-03-23 03:01:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 07:38:17 -0800 |
commit | 63872f87a151413100678f110d1556026002809e (patch) | |
tree | 4abb8b8c7f60a9d2c6645c4eb9e95a9c6ba56023 /drivers/oprofile/cpu_buffer.c | |
parent | 5a6b7951bfcca7f45f44269ea87417c74558daf8 (diff) | |
download | op-kernel-dev-63872f87a151413100678f110d1556026002809e.zip op-kernel-dev-63872f87a151413100678f110d1556026002809e.tar.gz |
[PATCH] Only allocate percpu data for possible CPUs
percpu_data blindly allocates bootmem memory to store NR_CPUS instances of
cpudata, instead of allocating memory only for possible cpus.
This patch saves ram, allocating num_possible_cpus() (instead of NR_CPUS)
instances.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: "David S. Miller" <davem@davemloft.net>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Jens Axboe <axboe@suse.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Jens Axboe <axboe@suse.de>
Cc: Anton Blanchard <anton@samba.org>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
0 files changed, 0 insertions, 0 deletions