]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - lib/cpumask.c
[PATCH] cpumask: uninline next_cpu()
[mirror_ubuntu-artful-kernel.git] / lib / cpumask.c
1 #include <linux/kernel.h>
2 #include <linux/bitops.h>
3 #include <linux/cpumask.h>
4 #include <linux/module.h>
5
6 int __first_cpu(const cpumask_t *srcp)
7 {
8 return min_t(int, NR_CPUS, find_first_bit(srcp->bits, NR_CPUS));
9 }
10 EXPORT_SYMBOL(__first_cpu);
11
12 int __next_cpu(int n, const cpumask_t *srcp)
13 {
14 return min_t(int, NR_CPUS, find_next_bit(srcp->bits, NR_CPUS, n+1));
15 }
16 EXPORT_SYMBOL(__next_cpu);