Blame view
lib/cpumask.c
565 Bytes
ccb46000f
|
1 2 3 4 5 6 7 8 9 10 |
#include <linux/kernel.h> #include <linux/bitops.h> #include <linux/cpumask.h> #include <linux/module.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); |
3d18bd74a
|
11 12 13 14 15 |
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); |
863028207
|
16 |
|
96a9b4d31
|
17 18 19 20 21 22 23 24 25 26 27 |
int __any_online_cpu(const cpumask_t *mask) { int cpu; for_each_cpu_mask(cpu, *mask) { if (cpu_online(cpu)) break; } return cpu; } EXPORT_SYMBOL(__any_online_cpu); |