1 #include <linux/kernel.h>
2 #include <linux/bitops.h>
3 #include <linux/cpumask.h>
4 #include <linux/module.h>
6 int __first_cpu(const cpumask_t
*srcp
)
8 return min_t(int, NR_CPUS
, find_first_bit(srcp
->bits
, NR_CPUS
));
10 EXPORT_SYMBOL(__first_cpu
);
12 int __next_cpu(int n
, const cpumask_t
*srcp
)
14 return min_t(int, NR_CPUS
, find_next_bit(srcp
->bits
, NR_CPUS
, n
+1));
16 EXPORT_SYMBOL(__next_cpu
);
19 int __next_cpu_nr(int n
, const cpumask_t
*srcp
)
21 return min_t(int, nr_cpu_ids
,
22 find_next_bit(srcp
->bits
, nr_cpu_ids
, n
+1));
24 EXPORT_SYMBOL(__next_cpu_nr
);
27 int __any_online_cpu(const cpumask_t
*mask
)
31 for_each_cpu_mask(cpu
, *mask
) {
37 EXPORT_SYMBOL(__any_online_cpu
);
This page took 0.033028 seconds and 6 git commands to generate.