summaryrefslogtreecommitdiffstats
path: root/lib/cpumask.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-11-08 20:24:19 +1100
committerIngo Molnar <mingo@elte.hu>2008-11-09 21:09:54 +0100
commit984f2f377fdfd098f5ae58d09ee04d5e29e6112b (patch)
tree6f6ea07057f5680586a8ac6f77700c118f253bcb /lib/cpumask.c
parentcd83e42c6b0413dcbb548c2ead799111ff7e6a13 (diff)
downloadlinux-stable-984f2f377fdfd098f5ae58d09ee04d5e29e6112b.tar.gz
linux-stable-984f2f377fdfd098f5ae58d09ee04d5e29e6112b.tar.bz2
linux-stable-984f2f377fdfd098f5ae58d09ee04d5e29e6112b.zip
cpumask: introduce new API, without changing anything, v3
Impact: cleanup Clean up based on feedback from Andrew Morton and others: - change to inline functions instead of macros - add __init to bootmem method - add a missing debug check Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/cpumask.c')
-rw-r--r--lib/cpumask.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c
index 2ebc3a9a7465..8d03f22c6ced 100644
--- a/lib/cpumask.c
+++ b/lib/cpumask.c
@@ -67,6 +67,7 @@ int cpumask_any_but(const struct cpumask *mask, unsigned int cpu)
{
unsigned int i;
+ cpumask_check(cpu);
for_each_cpu(i, mask)
if (i != cpu)
break;
@@ -108,7 +109,7 @@ void free_cpumask_var(cpumask_var_t mask)
}
EXPORT_SYMBOL(free_cpumask_var);
-void free_bootmem_cpumask_var(cpumask_var_t mask)
+void __init free_bootmem_cpumask_var(cpumask_var_t mask)
{
free_bootmem((unsigned long)mask, cpumask_size());
}