diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2015-04-18 03:48:27 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-04-19 07:05:32 +0200 |
commit | e4afa120c98252e44390067c3a6cc775cde30659 (patch) | |
tree | ce3183fd639683531c6dfc37e018f8c3030c3a97 /lib | |
parent | cpumask: resurrect CPU_MASK_CPU0 (diff) | |
download | linux-e4afa120c98252e44390067c3a6cc775cde30659.tar.xz linux-e4afa120c98252e44390067c3a6cc775cde30659.zip |
cpumask: remove __first_cpu / __next_cpu
They were for use by the deprecated first_cpu() and next_cpu() wrappers,
but sparc used them directly.
They're now replaced by cpumask_first / cpumask_next. And __next_cpu_nr
is completely obsolete.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: David S. Miller <davem@davemloft.net>
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 @@ #include <linux/export.h> #include <linux/bootmem.h> -int __first_cpu(const cpumask_t *srcp) -{ - return min_t(int, NR_CPUS, find_first_bit(srcp->bits, NR_CPUS)); -} -EXPORT_SYMBOL(__first_cpu); - -int __next_cpu(int n, const cpumask_t *srcp) -{ - return min_t(int, NR_CPUS, find_next_bit(srcp->bits, NR_CPUS, n+1)); -} -EXPORT_SYMBOL(__next_cpu); - -#if NR_CPUS > 64 -int __next_cpu_nr(int n, const cpumask_t *srcp) -{ - return min_t(int, nr_cpu_ids, - find_next_bit(srcp->bits, nr_cpu_ids, n+1)); -} -EXPORT_SYMBOL(__next_cpu_nr); -#endif - /** * cpumask_next_and - get the next cpu in *src1p & *src2p * @n: the cpu prior to the place to search (ie. return will be > @n) |