mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Acked-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1527781d22
commit
e4afa120c9
2 changed files with 2 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue