PCI: rpaphp: Document find_php_slot()
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / lib / cpumask.c
blob1ea2c184315d12bb8c5c46674c28a53ab16815a1
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);
18 int nr_cpu_ids;
19 EXPORT_SYMBOL(nr_cpu_ids);
21 int __any_online_cpu(const cpumask_t *mask)
23 int cpu;
25 for_each_cpu_mask(cpu, *mask) {
26 if (cpu_online(cpu))
27 break;
29 return cpu;
31 EXPORT_SYMBOL(__any_online_cpu);