diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cpumask.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c index ba379d12bb57..75379b759d3f 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c | |||
@@ -5,27 +5,6 @@ | |||
5 | #include <linux/export.h> | 5 | #include <linux/export.h> |
6 | #include <linux/bootmem.h> | 6 | #include <linux/bootmem.h> |
7 | 7 | ||
8 | int __first_cpu(const cpumask_t *srcp) | ||
9 | { | ||
10 | return min_t(int, NR_CPUS, find_first_bit(srcp->bits, NR_CPUS)); | ||
11 | } | ||
12 | EXPORT_SYMBOL(__first_cpu); | ||
13 | |||
14 | int __next_cpu(int n, const cpumask_t *srcp) | ||
15 | { | ||
16 | return min_t(int, NR_CPUS, find_next_bit(srcp->bits, NR_CPUS, n+1)); | ||
17 | } | ||
18 | EXPORT_SYMBOL(__next_cpu); | ||
19 | |||
20 | #if NR_CPUS > 64 | ||
21 | int __next_cpu_nr(int n, const cpumask_t *srcp) | ||
22 | { | ||
23 | return min_t(int, nr_cpu_ids, | ||
24 | find_next_bit(srcp->bits, nr_cpu_ids, n+1)); | ||
25 | } | ||
26 | EXPORT_SYMBOL(__next_cpu_nr); | ||
27 | #endif | ||
28 | |||
29 | /** | 8 | /** |
30 | * cpumask_next_and - get the next cpu in *src1p & *src2p | 9 | * cpumask_next_and - get the next cpu in *src1p & *src2p |
31 | * @n: the cpu prior to the place to search (ie. return will be > @n) | 10 | * @n: the cpu prior to the place to search (ie. return will be > @n) |