aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cpumask.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-11-08 04:24:19 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-09 15:09:54 -0500
commit984f2f377fdfd098f5ae58d09ee04d5e29e6112b (patch)
tree6f6ea07057f5680586a8ac6f77700c118f253bcb /lib/cpumask.c
parentcd83e42c6b0413dcbb548c2ead799111ff7e6a13 (diff)
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)
67{ 67{
68 unsigned int i; 68 unsigned int i;
69 69
70 cpumask_check(cpu);
70 for_each_cpu(i, mask) 71 for_each_cpu(i, mask)
71 if (i != cpu) 72 if (i != cpu)
72 break; 73 break;
@@ -108,7 +109,7 @@ void free_cpumask_var(cpumask_var_t mask)
108} 109}
109EXPORT_SYMBOL(free_cpumask_var); 110EXPORT_SYMBOL(free_cpumask_var);
110 111
111void free_bootmem_cpumask_var(cpumask_var_t mask) 112void __init free_bootmem_cpumask_var(cpumask_var_t mask)
112{ 113{
113 free_bootmem((unsigned long)mask, cpumask_size()); 114 free_bootmem((unsigned long)mask, cpumask_size());
114} 115}