diff options
author | Mike Travis <travis@sgi.com> | 2008-07-24 18:21:29 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-26 16:40:32 +0200 |
commit | b8d317d10cca76cabe6b03ebfeb23cc99118b731 (patch) | |
tree | a997d21960099095822ffbfe8be4d3f6176f33a9 /lib | |
parent | 024e8ac04453b3525448c31ef39848cf675ba6db (diff) | |
download | op-kernel-dev-b8d317d10cca76cabe6b03ebfeb23cc99118b731.zip op-kernel-dev-b8d317d10cca76cabe6b03ebfeb23cc99118b731.tar.gz |
cpumask: make cpumask_of_cpu_map generic
If an arch doesn't define cpumask_of_cpu_map, create a generic
statically-initialized one for them. This allows removal of the buggy
cpumask_of_cpu() macro (&cpumask_of_cpu() gives address of
out-of-scope var).
An arch with NR_CPUS of 4096 probably wants to allocate this itself
based on the actual number of CPUs, since otherwise they're using 2MB
of rodata (1024 cpus means 128k). That's what
CONFIG_HAVE_CPUMASK_OF_CPU_MAP is for (only x86/64 does so at the
moment).
In future as we support more CPUs, we'll need to resort to a
get_cpu_map()/put_cpu_map() allocation scheme.
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jack Steiner <steiner@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions