diff options
author | Eric Dumazet <[email protected]> | 2006-03-23 03:01:04 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2006-03-23 07:38:17 -0800 |
commit | 63872f87a151413100678f110d1556026002809e (patch) | |
tree | 4abb8b8c7f60a9d2c6645c4eb9e95a9c6ba56023 /arch/sparc/kernel/sun4m_smp.c | |
parent | 5a6b7951bfcca7f45f44269ea87417c74558daf8 (diff) |
[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 <[email protected]>
Acked-by: "David S. Miller" <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Jens Axboe <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Anton Blanchard <[email protected]>
Acked-by: William Irwin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/sparc/kernel/sun4m_smp.c')
0 files changed, 0 insertions, 0 deletions