From: Rusty Russell Date: Sat, 13 Dec 2008 10:50:28 +0000 (+1030) Subject: cpumask: Use all NR_CPUS bits unless CONFIG_CPUMASK_OFFSTACK X-Git-Tag: v2.6.29-rc1~538^2~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7be7585393d311866653564fbcd10a3232773c0b;p=pandora-kernel.git 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 Cc: Mike Travis --- Reading git-diff-tree failed