aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-12-13 21:20:28 +1030
committerRusty Russell <rusty@rustcorp.com.au>2008-12-13 21:20:28 +1030
commit7be7585393d311866653564fbcd10a3232773c0b (patch)
tree50399f8f3bd97d521f91bf2de30dd41c081e3321 /init
parentcpumask: Introduce cpumask_of_{node,pcibus} to replace {node,pcibus}_to_cpumask (diff)
downloadlinux-dev-7be7585393d311866653564fbcd10a3232773c0b.tar.xz
linux-dev-7be7585393d311866653564fbcd10a3232773c0b.zip
cpumask: Use all NR_CPUS bits unless CONFIG_CPUMASK_OFFSTACK
Impact: futureproof as we convert more code to new APIs The old cpumask operators treat all NR_CPUS bits as relevent, the new ones use nr_cpumask_bits. For large NR_CPUS and small nr_cpu_ids, this makes a difference. However, mixing the two can cause problems with undefined bits. An arch which sets CONFIG_CPUMASK_OFFSTACK should have converted across to the new operators, so it's safe in that case. (Thanks to Stephen Rothwell for bisecting the initial unused-bits bug, and Mike Travis for this solution). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Mike Travis <travis@sgi.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions