summaryrefslogtreecommitdiffstats
path: root/include/linux/cpumask.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpumask.h')
-rw-r--r--include/linux/cpumask.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
index 68c5a8290275..cd415b733c2a 100644
--- a/include/linux/cpumask.h
+++ b/include/linux/cpumask.h
@@ -178,20 +178,7 @@ static inline unsigned int cpumask_first(const struct cpumask *srcp)
178 return find_first_bit(cpumask_bits(srcp), nr_cpumask_bits); 178 return find_first_bit(cpumask_bits(srcp), nr_cpumask_bits);
179} 179}
180 180
181/** 181unsigned int cpumask_next(int n, const struct cpumask *srcp);
182 * cpumask_next - get the next cpu in a cpumask
183 * @n: the cpu prior to the place to search (ie. return will be > @n)
184 * @srcp: the cpumask pointer
185 *
186 * Returns >= nr_cpu_ids if no further cpus set.
187 */
188static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
189{
190 /* -1 is a legal arg here. */
191 if (n != -1)
192 cpumask_check(n);
193 return find_next_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1);
194}
195 182
196/** 183/**
197 * cpumask_next_zero - get the next unset cpu in a cpumask 184 * cpumask_next_zero - get the next unset cpu in a cpumask